/* Login & Auth Premium Styles */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Soft premium gradient */
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    padding: 1rem;
    position: relative;
    z-index: 1000;
    /* Ensure on top */
}

/* Dark mode override via media query or class */
@media (prefers-color-scheme: dark) {
    .login-container {
        background: linear-gradient(135deg, #111827 0%, #172554 100%);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 25px -5px rgba(0, 0, 0, 0.1);
    /* Deep shadow */
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.025em;
}

.login-header p {
    color: #64748b;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form.hidden {
    display: none;
}

.auth-form.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 12px;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: white;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.btn-social:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-social:active {
    transform: translateY(0);
}

.btn-social img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.auth-switch {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1rem;
    color: #64748b;
}

.auth-switch a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Helpers */
.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 0.75rem;
}

/* Form inputs styling override for login context if needed, 
   but global styles usually handle it. 
   Just ensure clear backgrounds since we are on glass. */

.login-card input {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: #e2e8f0;
}

.login-card input:focus {
    background-color: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.hidden {
    display: none !important;
}