/* ... existing styles ... */

.login-container .glass-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 3rem 2rem;
    animation: floatIn 0.8s ease-out;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Auth Toggle */
.auth-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.auth-toggle button {
    flex: 1;
    padding: 0.8rem;
    border-radius: calc(var(--radius-md) - 4px);
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.2s;
}

.auth-toggle button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.3);
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
    top: -0.7rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--bg-color);
    /* Fallback */
    background: linear-gradient(to bottom, var(--bg-color) 50%, transparent 50%);
    /* Gradient trick to hide line */
    background: transparent;
    /* Or just transparent if background is solid */
    padding: 0 0.4rem;
}

/* Error Message */
.error-msg {
    color: #f87171;
    font-size: 0.9rem;
    min-height: 1.2rem;
    margin-top: 1rem;
    opacity: 0.9;
}

/* Animated Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    animation: moveBlob 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #4c1d95;
    animation-duration: 25s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: #be185d;
    animation-delay: -5s;
    animation-duration: 18s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: #2563eb;
    animation-delay: -10s;
}

@keyframes moveBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    width: 100%;
}