/* ── Auth pages (login, register, confirm, forgot/reset password) ── */

.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 60%, #f5f0ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-card {
    background: #fff;
    border: 1px solid rgba(88, 101, 124, 0.12);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(30, 40, 80, 0.09), 0 1px 4px rgba(30, 40, 80, 0.05);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
}

.auth-card-info {
    text-align: center;
}

.auth-logo {
    margin-bottom: 24px;
    text-align: center;
}

.auth-brand {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ds-accent, #3b6fce);
    text-decoration: none;
}

.auth-brand:hover { text-decoration: none; color: var(--ds-accent, #3b6fce); }

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ds-text, #111827);
    margin: 0 0 8px;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--ds-muted, #64748b);
    margin: 0 0 24px;
    text-align: center;
    line-height: 1.5;
}

/* ── Alert ── */

.auth-alert {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 0.875rem;
}

.auth-alert p {
    margin: 0;
    line-height: 1.5;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* ── Form ── */

.auth-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ds-text, #111827);
}

.auth-optional {
    font-weight: 400;
    color: var(--ds-muted, #64748b);
    font-size: 0.8rem;
}

.auth-field input {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9375rem;
    color: var(--ds-text, #111827);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    width: 100%;
}

.auth-field input:focus {
    border-color: var(--ds-accent, #3b6fce);
    box-shadow: 0 0 0 3px rgba(59, 111, 206, 0.12);
}

/* ── Buttons ── */

.auth-btn-primary,
.auth-btn-secondary {
    display: block;
    width: 100%;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    text-decoration: none;
    margin-top: 4px;
}

.auth-btn-primary {
    background: var(--ds-accent, #3b6fce);
    color: #fff;
}

.auth-btn-primary:hover {
    background: #2d5bb8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 111, 206, 0.25);
    text-decoration: none;
}

.auth-btn-secondary {
    background: #f1f5f9;
    color: var(--ds-text, #111827);
    border: 1px solid #e2e8f0;
}

.auth-btn-secondary:hover {
    background: #e2e8f0;
    color: var(--ds-text, #111827);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── Divider ── */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
    color: var(--ds-muted, #64748b);
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ── Footer link ── */

.auth-footer {
    margin: 20px 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--ds-muted, #64748b);
}

.auth-footer a {
    color: var(--ds-accent, #3b6fce);
    text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

/* ── Icon ── */

.auth-icon-success,
.auth-icon-error {
    margin: 0 auto 16px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-icon-success { background: #f0fdf4; }
.auth-icon-error   { background: #fef2f2; }

/* ── Info card messages ── */

.auth-message {
    font-size: 0.9375rem;
    color: var(--ds-text, #111827);
    line-height: 1.6;
    margin: 0 0 12px;
}

.auth-message-small {
    font-size: 0.8125rem;
    color: var(--ds-muted, #64748b);
    margin: 0 0 16px;
}

/* ── Resend form ── */

.auth-resend {
    margin-top: 16px;
}

/* ── Inline field link (e.g. "Mot de passe oublié?" beside label) ── */

.auth-field-link {
    float: right;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--ds-accent, #3b6fce);
    text-decoration: none;
}

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

/* ── Forgot password link ── */

.auth-forgot {
    text-align: right;
    margin-top: -8px;
}

.auth-forgot a {
    font-size: 0.8125rem;
    color: var(--ds-accent, #3b6fce);
    text-decoration: none;
}

.auth-forgot a:hover { text-decoration: underline; }

/* ── Register link ── */

.auth-register-link {
    text-align: center;
    font-size: 0.875rem;
    color: var(--ds-muted, #64748b);
    margin-top: 16px;
}

.auth-register-link a {
    color: var(--ds-accent, #3b6fce);
    font-weight: 600;
    text-decoration: none;
}

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

/* ── Terms line ── */

.auth-terms {
    font-size: 0.8rem;
    color: var(--ds-muted, #64748b);
    text-align: center;
    margin: 4px 0 0;
    line-height: 1.5;
}

.auth-terms a { color: var(--ds-accent, #3b6fce); }
.auth-terms a:hover { text-decoration: underline; }

/* ── Google button ── */

.auth-btn-google,
.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    background: #fff;
    color: #374151;
    border: 1.5px solid #d1d5db;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
}

.auth-btn-google:hover,
.auth-google-btn:hover {
    border-color: #9ca3af;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    color: #374151;
    text-decoration: none;
}

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
}
