/* --- Auth Premium Design System --- */
:root {
    --auth-primary: #4F46E5;
    --auth-secondary: #818CF8;
    --auth-bg: #F8FAFC;
    --auth-surface: rgba(255, 255, 255, 0.95);
    --auth-border: #E2E8F0;
}

body.auth-page {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top left, #EEF2FF 0%, #F8FAFC 50%, #FDF2F8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--auth-surface);
    backdrop-filter: blur(10px);
    border: 1px solid white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    animation: fadeInSlide 0.6s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--auth-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-subtitle {
    color: #64748B;
    font-size: 0.95rem;
}

/* Forms */
.auth-input-group {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: white;
    border: 1.5px solid var(--auth-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: 0.2s;
    outline: none;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.auth-btn-primary {
    width: 100%;
    height: 48px;
    background: var(--auth-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.auth-btn-primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.auth-btn-primary:active { transform: translateY(0); }

.auth-btn-primary:disabled {
    background: #94A3B8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Social Login */
.auth-google-btn {
    width: 100%;
    height: 48px;
    background: white;
    border: 1.5px solid var(--auth-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 24px;
}

.auth-google-btn:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #94A3B8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #E2E8F0;
}

.auth-divider span { padding: 0 12px; }

/* Footer */
.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748B;
}

.auth-link {
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover { text-decoration: underline; }

/* Success Screen */
.success-icon {
    width: 80px;
    height: 80px;
    background: #DCFCE7;
    color: #166534;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Cloudflare Turnstile override */
.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}
