/* ============================================================
   Ty Lien — pages connexion / inscription
   Style aligné sur « Mon compte » : carte « verre » centrée,
   en-tête à icône verte, champs label + boîte à icône, bouton
   vert plein. S'adapte au thème clair/sombre.
   ============================================================ */

.auth {
    font-family: 'Sora', sans-serif;
    color: var(--white);
    min-height: calc(100dvh - 72px);
    display: flex; align-items: center; justify-content: center;
    padding: 54px 20px 90px;
    position: relative;
}
.auth * { box-sizing: border-box; }
.auth::before {                       /* halo vert doux, ambiance du site */
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 680px; height: 520px; pointer-events: none;
    background: radial-gradient(circle, rgba(0,201,123,.07), transparent 65%);
}

/* ── Carte verre (cf. .acct-panel) ─────────────────────── */
.auth-card {
    position: relative;
    width: 100%; max-width: 440px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-edge), var(--glass-shadow);
    border-radius: 22px;
    padding: 34px 32px 30px;
    animation: auth-pop .55s cubic-bezier(.34,1.4,.5,1) both;
}

/* ── En-tête (cf. .acct-card__head + .ico) ─────────────── */
.auth-head { margin-bottom: 24px; }
.auth-head__ico {
    width: 46px; height: 46px; border-radius: 14px;
    background: rgba(0,201,123,.1); color: var(--g);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: 16px;
}
.auth-head h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.5px; color: var(--white); margin: 0 0 6px; }
.auth-head p  { font-size: .86rem; color: rgba(var(--fg-rgb),.5); line-height: 1.55; margin: 0; }

/* ── Flash / alertes (cf. .acct-flash) ─────────────────── */
.auth-flash { display: flex; align-items: flex-start; gap: 11px; padding: 13px 16px; border-radius: 14px; font-size: .84rem; font-weight: 600; margin-bottom: 20px; line-height: 1.45; }
.auth-flash i { margin-top: 1px; flex-shrink: 0; }
.auth-flash--error   { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #f87171; }
.auth-flash--success { background: rgba(0,201,123,.12); border: 1px solid rgba(0,201,123,.25); color: #34e3a0; }
.auth-flash ul { margin: 0; padding-left: 18px; }

/* ── Champs (cf. .acct-field / .acct-field__box) ───────── */
.auth-field { margin-bottom: 15px; }
.auth-field > label { display: block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(var(--fg-rgb),.4); margin-bottom: 8px; }
.auth-box { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 14px; background: rgba(var(--fg-rgb),.04); border: 1px solid rgba(var(--fg-rgb),.1); border-radius: 12px; transition: border-color .2s, background .2s; }
.auth-box:focus-within { border-color: var(--g); background: rgba(0,201,123,.04); }
.auth-box > i { color: rgba(var(--fg-rgb),.35); font-size: .85rem; flex-shrink: 0; }
.auth-box input { flex: 1; min-width: 0; background: none; border: none; outline: none; padding: 13px 0; color: var(--white); font-family: 'Sora', sans-serif; font-size: .92rem; }
.auth-box input::placeholder { color: rgba(var(--fg-rgb),.3); }
.auth-eye { background: none; border: none; color: rgba(var(--fg-rgb),.35); cursor: pointer; font-size: .85rem; padding: 6px; flex-shrink: 0; }
.auth-eye:hover { color: var(--g); }

/* deux champs côte à côte (prénom / nom) */
.auth-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
.auth-grid .auth-field { min-width: 0; }

/* champ honeypot anti-robot : invisible pour l'humain, piège pour les bots */
.auth-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }

/* ── Ligne « se souvenir » ─────────────────────────────── */
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; }
.auth-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.auth-check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex-shrink: 0; border: 1.5px solid rgba(var(--fg-rgb),.22); border-radius: 6px; background: rgba(var(--fg-rgb),.04); cursor: pointer; position: relative; transition: .2s; }
.auth-check input:checked { background: var(--g); border-color: var(--g); }
.auth-check input:checked::after { content: ''; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px; border: solid var(--dark); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.auth-check span { font-size: .82rem; color: rgba(var(--fg-rgb),.55); }

/* ── Bouton (cf. .acct-btn--primary) ───────────────────── */
.auth-submit { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 26px; border-radius: 100px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: .9rem; border: none; cursor: pointer; background: var(--g); color: var(--dark); transition: all .3s cubic-bezier(.4,0,.2,1); }
.auth-submit:hover { background: var(--g2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,201,123,.3); }

.auth-alt { text-align: center; margin: 20px 0 0; font-size: .85rem; color: rgba(var(--fg-rgb),.5); }
.auth-alt a { color: var(--g); font-weight: 700; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

@keyframes auth-pop { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
    .auth { padding: 34px 16px 70px; }
    .auth-card { padding: 28px 22px; border-radius: 18px; }
    .auth-grid { grid-template-columns: 1fr; gap: 0; }
}
