/* ===================================================================== */
/* === Auth pages (login, signup, password reset) — premium shared ===== */
/* === Scoped under .auth-container / .auth-form so it only affects ===== */
/* === the account screens. Uses the global design tokens.          ===== */
/* ===================================================================== */
.auth-container {
    max-width: 440px;
    margin: 40px auto;
    padding: 2.25rem;
    background: var(--bg-white, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
@media (max-width: 480px) {
    .auth-container { margin: 0; border-radius: 0; border-left: 0; border-right: 0; padding: 1.5rem 1.25rem; }
}

.auth-header { text-align: center; margin-bottom: 1.75rem; }
.auth-header h1 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.4rem; color: var(--text-dark, #111111); }
.auth-header p { color: var(--text-muted, #6b7280); margin: 0; font-size: 0.95rem; }

.auth-form .form-group { margin-bottom: 1.1rem; }
.auth-form label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.85rem; color: var(--text-dark, #111111); }

/* Style every field type (the old CSS only covered email/password) */
.auth-form input,
.auth-form select {
    width: 100%; box-sizing: border-box; padding: 0.7rem 0.85rem; font-size: 0.95rem;
    font-family: inherit; color: var(--text-dark, #111111); background: #fff;
    border: 1px solid var(--border-strong, #d1d5db); border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-form input:focus,
.auth-form select:focus {
    outline: 0; border-color: var(--accent, #2b6cb0); box-shadow: 0 0 0 3px var(--accent-light, #e8f0f9);
}

.auth-hint { display: block; margin-top: 0.4rem; font-size: 0.78rem; color: var(--text-muted, #6b7280); }
.auth-hint ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.auth-field-error { margin-top: 0.35rem; color: var(--error, #dc2626); font-size: 0.8rem; }
.auth-field-error span { display: block; }

.auth-submit-btn {
    width: 100%; padding: 0.9rem; margin-top: 0.5rem;
    background: var(--primary-color, #111111); color: #fff; border: none; border-radius: 8px;
    cursor: pointer; font-size: 1rem; font-weight: 700;
    transition: background-color 0.2s ease;
}
.auth-submit-btn:hover { background: #333; }

.auth-links { text-align: center; margin-top: 1.25rem; font-size: 0.9rem; color: var(--text-muted, #6b7280); }
.auth-links a { color: var(--accent, #2b6cb0); text-decoration: none; font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

.auth-divider { display: flex; align-items: center; text-align: center; color: var(--text-muted, #6b7280); margin: 1.5rem 0; font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border, #e5e7eb); }
.auth-divider:not(:empty)::before { margin-right: 0.75rem; }
.auth-divider:not(:empty)::after { margin-left: 0.75rem; }

.social-login-button {
    display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box;
    padding: 0.75rem; border-radius: 8px; text-decoration: none; font-weight: 600;
    border: 1px solid var(--border-strong, #d1d5db); background: #fff; color: var(--text-dark, #111111);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.social-login-button img, .social-login-button svg { width: 20px; height: 20px; margin-right: 12px; }
.social-login-button.google:hover { background: var(--bg-subtle, #f7f8fa); border-color: #c7ccd1; }

.errorlist {
    list-style: none; padding: 0.85rem 1rem; margin: 0 0 1.25rem; border-radius: 8px;
    background: #fdecea; color: #9b1c1c; border: 1px solid #f5c2c0; font-size: 0.88rem;
}
.errorlist li { margin: 0; }

/* Email-sent / confirmation pages */
.auth-container > p { color: var(--text-muted, #6b7280); line-height: 1.6; }
.email-highlight { font-weight: 700; color: var(--text-dark, #111111); }
