/* ============================================================
   LaboRésultat — Pages d'authentification
   login, inscription, mot de passe oublié, réinitialisation
   ============================================================ */

:root {
    --ap:        #1A3A6B;
    --ap-dark:   #122952;
    --ap-light:  #EBF1FB;
    --la:        #0E9F6E;
    --border:    #DDE4EF;
    --text:      #1A2436;
    --muted:     #5A6A7E;
    --bg:        #F2F5FA;
    --radius:    12px;
    --radius-sm: 7px;
    --shadow:    0 4px 24px rgba(10,24,60,0.10);
}

/* ── Base ──────────────────────────────────────────────────── */
body {
    background: var(--bg);
    font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    color: var(--text);
    font-size: 0.9rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Auth wrapper ───────────────────────────────────────────── */
.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(150deg, #EBF1FB 0%, #F2F5FA 50%, #E3F8F1 100%);
}

/* ── Card ───────────────────────────────────────────────────── */
.auth-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
}
.auth-card-wide {
    max-width: 620px;
}

/* ── Logo / brand ───────────────────────────────────────────── */
.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}
.auth-logo-icon {
    width: 56px;
    height: 56px;
    background: var(--ap-light);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.4rem;
    color: var(--ap);
}
.auth-logo h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.auth-logo p {
    font-size: 0.84rem;
    color: var(--muted);
    margin: 0;
}

/* ── Form elements ──────────────────────────────────────────── */
.form-label {
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--text);
    margin-bottom: 5px;
}
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    font-size: 0.875rem;
    padding: 10px 13px;
    color: var(--text);
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ap);
    box-shadow: 0 0 0 3px rgba(26,58,107,0.10);
    outline: none;
}
.input-group-text {
    border: 1.5px solid var(--border);
    background: #F5F7FB;
    color: var(--muted);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}
.input-group > .input-group-text  { border-right: none; }
.input-group > .form-control      { border-left: none; }

/* ── Primary button ─────────────────────────────────────────── */
.btn-main {
    width: 100%;
    background: var(--ap);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    display: block;
    text-align: center;
    text-decoration: none;
}
.btn-main:hover {
    background: var(--ap-dark);
    box-shadow: 0 4px 14px rgba(26,58,107,0.28);
    color: #fff;
}

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    padding: 12px 16px;
}
.alert-success { background: #ECFDF5; color: #065F46; }
.alert-danger  { background: #FEF2F2; color: #991B1B; }
.alert-warning { background: #FFFBEB; color: #92400E; }
.alert-info    { background: var(--ap-light); color: var(--ap-dark); }

/* ── Links ──────────────────────────────────────────────────── */
.auth-link {
    color: var(--ap);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.84rem;
}
.auth-link:hover { color: var(--ap-dark); text-decoration: underline; }

/* ── Divider ────────────────────────────────────────────────── */
.auth-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 22px 0;
}

/* ── Section titles inside card ────────────────────────────── */
.auth-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    color: var(--muted);
    margin: 0 0 14px;
}

/* ── Multi-step progress (inscription) ──────────────────────── */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}
.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--muted);
    position: relative;
    z-index: 1;
    transition: all 0.2s;
}
.step-dot.active {
    background: var(--ap);
    border-color: var(--ap);
    color: #fff;
}
.step-dot.done {
    background: var(--la);
    border-color: var(--la);
    color: #fff;
}
.step-line {
    height: 2px;
    width: 60px;
    background: var(--border);
    flex-shrink: 0;
}
.step-line.done { background: var(--la); }

/* ── Timer badge ────────────────────────────────────────────── */
.timer-badge {
    background: var(--ap-light);
    color: var(--ap);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Password strength bar ──────────────────────────────────── */
.strength-bar {
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}
.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    .auth-card    { padding: 28px 20px; }
    .auth-logo h1 { font-size: 1.15rem; }
    .form-control, .form-select { font-size: 16px; }
}
