/* ============================================================
   AUTH-FIELDS.CSS — Champs, boutons, étapes, OTP (espace client)
   À placer dans public/style/auth-fields.css
   ============================================================ */

/* ── Champs ── */
.auth-fields{display:grid;gap:1.6rem;margin-top:2.4rem}
.auth-fields--2{grid-template-columns:1fr 1fr}
.auth-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.auth-field-label{font-size:1.3rem;font-weight:500;color:#111}
.auth-field-label .req{color:var(--auth-danger);margin-left:2px}
.auth-input{display:flex;align-items:center;gap:.8rem;height:44px;padding:0 1.2rem;background:#fff;border:1px solid var(--auth-line);border-radius:6px;transition:border-color .25s,box-shadow .25s}
.auth-input:focus-within{border-color:var(--green);box-shadow:0 0 0 3px rgba(1,160,140,.14)}
.auth-input i{font-size:1.4rem;color:var(--auth-muted-2);width:16px;text-align:center}
.auth-input:focus-within i{color:var(--green)}
.auth-input input,.auth-input select{flex:1;min-width:0;border:none;outline:none;background:transparent;font-family:inherit;font-size:1.4rem;color:#111}
.auth-input input::placeholder{color:#9a9a9a}
.auth-input select{cursor:pointer;-webkit-appearance:none;appearance:none}
.auth-input.is-invalid{border-color:var(--auth-danger);background:#ffdddd}
.auth-peek{border:none;background:transparent;color:var(--auth-muted-2);cursor:pointer;font-size:1.4rem;padding:0}
.auth-peek:hover{color:var(--green)}
.auth-hint{font-size:1.2rem;color:var(--auth-muted)}
.auth-error{font-size:1.2rem;color:var(--auth-danger)}

/* ── Boutons ── */
.auth-btn{display:inline-flex;align-items:center;justify-content:center;gap:.8rem;height:46px;padding:0 2.4rem;border:none;border-radius:6px;font-family:inherit;font-size:1.4rem;font-weight:700;cursor:pointer;transition:background .3s,color .3s,transform .15s}
.auth-btn:active{transform:translateY(1px)}
.auth-btn--primary{background:var(--green);color:#fff}
.auth-btn--primary:hover{background:#42b883;color:#fff;text-decoration:none}
.auth-btn--ghost{background:#fff;color:var(--green);border:1px solid var(--auth-line)}
.auth-btn--ghost:hover{background:var(--auth-tint);border-color:var(--green);text-decoration:none}
.auth-btn--block{width:100%}
.auth-btn[disabled]{opacity:.45;cursor:not-allowed}
.auth-btn-row{display:flex;gap:1.2rem;margin-top:2.4rem}
.auth-btn-row .auth-btn{flex:1}
.auth-link-row{display:flex;justify-content:flex-end;margin-top:1.2rem;font-size:1.3rem}

/* ── Case légale ── */
.auth-consent{display:flex;gap:1.2rem;align-items:flex-start;margin-top:2rem;padding:1.6rem;background:var(--auth-tint);border-radius:8px;cursor:pointer}
.auth-consent input{width:18px;height:18px;flex-shrink:0;margin-top:1px;accent-color:var(--green)}
.auth-consent span{font-size:1.3rem;line-height:1.6;color:var(--sousText)}

/* ── Choix du profil ── */
.auth-profiles{display:grid;gap:1.2rem;margin-top:2.4rem}
.auth-profile{display:flex;align-items:center;gap:1.6rem;width:100%;padding:1.6rem;background:#fff;border:1px solid var(--auth-line);border-radius:8px;cursor:pointer;text-align:left;font-family:inherit;transition:border-color .25s,background .25s,box-shadow .25s}
.auth-profile:hover{border-color:var(--green);background:var(--auth-tint)}
.auth-profile.is-selected{border-color:var(--green);background:var(--auth-tint);box-shadow:0 0 0 3px rgba(1,160,140,.12)}
.auth-profile-icon{width:44px;height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--auth-tint-2);color:var(--green);font-size:1.8rem}
.auth-profile.is-selected .auth-profile-icon{background:var(--green);color:#fff}
.auth-profile-title{display:block;font-size:1.5rem;font-weight:700;color:#111}
.auth-profile-desc{display:block;margin-top:3px;font-size:1.3rem;line-height:1.5;color:var(--auth-muted)}
.auth-profile-check{margin-left:auto;color:var(--green);font-size:1.6rem;opacity:0}
.auth-profile.is-selected .auth-profile-check{opacity:1}

/* ── Fil de progression ── */
.auth-steps{display:flex;align-items:center;gap:.8rem;margin-top:2.4rem}
.auth-step{display:flex;align-items:center;gap:.8rem;min-width:0}
.auth-step-dot{width:26px;height:26px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1.5px solid var(--auth-line);background:#fff;font-size:1.2rem;font-weight:700;color:var(--auth-muted-2)}
.auth-step.is-current .auth-step-dot{background:var(--green);border-color:var(--green);color:#fff}
.auth-step.is-done .auth-step-dot{background:var(--auth-tint-2);border-color:var(--green);color:var(--green)}
.auth-step-label{font-size:1.2rem;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:var(--auth-muted-2);white-space:nowrap}
.auth-step.is-current .auth-step-label,.auth-step.is-done .auth-step-label{color:var(--green)}
.auth-step-bar{flex:1;height:2px;background:var(--auth-line);min-width:12px}
.auth-step-bar.is-done{background:var(--green)}
.auth-pane{display:none}
.auth-pane.is-active{display:block}

/* ── Code OTP ── */
.auth-otp{display:flex;gap:1.2rem;margin-top:2.4rem}
.auth-otp input{width:52px;height:60px;text-align:center;font-family:inherit;font-size:2.4rem;font-weight:700;color:#111;border:1px solid var(--auth-line);border-radius:8px;outline:none;background:#fff}
.auth-otp input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(1,160,140,.14)}

/* ── Messages ── */
.auth-notice{display:flex;gap:1.2rem;align-items:flex-start;margin-top:2.4rem;padding:1.6rem;border-radius:8px;background:var(--auth-tint);font-size:1.3rem;line-height:1.6;color:var(--sousText)}
.auth-notice i{color:var(--green);font-size:1.6rem;margin-top:2px}
.auth-notice--amber{background:#faf0e8}
.auth-notice--amber i{color:#854f0b}
.auth-notice--danger{background:#ffdddd}
.auth-notice--danger i{color:var(--auth-danger)}
.auth-mark{width:64px;height:64px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--auth-tint-2);color:var(--green);font-size:2.8rem;margin-bottom:2rem}

@media (max-width:900px){
.auth{grid-template-columns:1fr}
.auth-aside{min-height:220px;padding:2.4rem}
.auth-aside-copy{max-width:none}
.auth-main{padding:2rem 2.4rem 3.2rem}
.auth-fields--2{grid-template-columns:1fr}
}
