/* GestResto GN — pages d'authentification (connexion, déconnexion, mot de passe) */
.auth, .auth-solo { --brique:#c2410c; --brique-fonce:#9a3412; --charbon:#2b1a14; --creme:#faf6f1; --trait:#eadfd5; --texte:#2a1f1a; --discret:#7a6b62; }
.auth { min-height:100vh; display:grid; grid-template-columns:minmax(380px,46%) 1fr; background:#fff; color:var(--texte); }

/* ---------- Colonne marque ---------- */
.auth-brand { position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:space-between;
  padding:3rem 3.5rem; color:#fff;
  background:
    radial-gradient(900px 500px at 110% -10%, rgba(249,115,22,.35), transparent 60%),
    radial-gradient(700px 500px at -20% 110%, rgba(194,65,12,.45), transparent 60%),
    linear-gradient(160deg, #3a2218 0%, #2b1a14 55%, #1f120d 100%); }
.auth-brand::after { content:""; position:absolute; inset:0; pointer-events:none; opacity:.05;
  background-image:linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size:44px 44px; }
.auth-brand > * { position:relative; z-index:1; }
.auth-brand .logo img { height:46px; width:auto; display:block; }
.auth-brand h2 { color:#fff; font-size:2rem; line-height:1.2; font-weight:700; letter-spacing:-.01em; margin:0 0 1rem; max-width:22ch; }
.auth-brand h2 em { font-style:normal; color:#fdba74; }
.auth-brand .lead { color:rgba(255,255,255,.72); font-size:1rem; line-height:1.65; max-width:46ch; margin:0 0 2rem; }
.auth-points { list-style:none; margin:0; padding:0; display:grid; gap:.9rem; }
.auth-points li { display:flex; align-items:center; gap:.85rem; color:rgba(255,255,255,.9); font-size:.95rem; }
.auth-points .ico { flex:0 0 36px; height:36px; border-radius:10px; display:grid; place-items:center; background:rgba(255,255,255,.1); color:#fdba74; font-size:1.15rem; }
.auth-brand .legal { color:rgba(255,255,255,.45); font-size:.8rem; margin:0; }

/* ---------- Colonne formulaire ---------- */
.auth-main { display:flex; align-items:center; justify-content:center; padding:2.5rem 1.5rem; background:#fff; }
.auth-box { width:100%; max-width:392px; }
.auth-box .logo-mobile { display:none; margin-bottom:2rem; }
.auth-box .logo-mobile img { height:40px; }
.auth-box h1 { font-size:1.65rem; font-weight:700; letter-spacing:-.01em; color:var(--texte); margin:0 0 .4rem; }
.auth-box .sub { color:var(--discret); font-size:.95rem; margin:0 0 2rem; line-height:1.55; }

.auth-alert { display:flex; gap:.6rem; align-items:flex-start; background:#fef2f2; border:1px solid #fecaca; color:#991b1b; border-radius:10px; padding:.7rem .9rem; font-size:.875rem; margin-bottom:1.25rem; }
.auth-alert i { font-size:1.1rem; line-height:1.2; }

.auth-field { margin-bottom:1.15rem; }
.auth-field label { display:block; font-size:.8rem; font-weight:600; color:var(--texte); margin-bottom:.4rem; }
.auth-input { position:relative; }
.auth-input > i.lead-ico { position:absolute; left:.95rem; top:50%; transform:translateY(-50%); color:#a8968a; font-size:1.1rem; pointer-events:none; }
.auth-input input { width:100%; height:48px; padding:0 2.9rem 0 2.75rem; border:1px solid var(--trait); border-radius:10px; background:#fff; color:var(--texte); font-size:.95rem; transition:border-color .15s, box-shadow .15s; }
.auth-input input::placeholder { color:#b5a79c; }
.auth-input input:hover { border-color:#d8c8ba; }
.auth-input input:focus { outline:0; border-color:var(--brique); box-shadow:0 0 0 4px rgba(194,65,12,.12); }
.auth-input .eye { position:absolute; right:.35rem; top:50%; transform:translateY(-50%); width:38px; height:38px; border:0; background:transparent; color:#a8968a; border-radius:8px; font-size:1.15rem; cursor:pointer; }
.auth-input .eye:hover { color:var(--brique); background:#fdeee6; }
.auth-caps { display:none; align-items:center; gap:.4rem; margin-top:.45rem; font-size:.8rem; color:#b45309; }
.auth-caps.visible { display:flex; }

.auth-btn { display:flex; align-items:center; justify-content:center; gap:.5rem; width:100%; height:48px; border:0; border-radius:10px; background:var(--brique); color:#fff; font-weight:600; font-size:.95rem; text-decoration:none; cursor:pointer; transition:background .15s, transform .05s, box-shadow .15s; box-shadow:0 6px 16px -6px rgba(194,65,12,.55); }
.auth-btn:hover { background:var(--brique-fonce); color:#fff; }
.auth-btn:active { transform:translateY(1px); }
.auth-btn:focus-visible { outline:3px solid rgba(194,65,12,.35); outline-offset:2px; }
.auth-btn[disabled] { opacity:.7; cursor:wait; }
.auth-help { text-align:center; color:var(--discret); font-size:.85rem; margin:1.5rem 0 0; }
.auth-secure { display:flex; align-items:center; justify-content:center; gap:.4rem; color:#9b8a7e; font-size:.78rem; margin-top:2.25rem; padding-top:1.25rem; border-top:1px solid #f1e9e1; }

/* ---------- Déconnexion ---------- */
.auth-solo { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:2rem 1rem; background:
  radial-gradient(800px 380px at 50% -10%, rgba(194,65,12,.10), transparent 70%), #faf6f1; }
.auth-card { width:100%; max-width:430px; background:#fff; border:1px solid #eadfd5; border-radius:20px; padding:2.5rem 2.25rem 2rem; text-align:center; box-shadow:0 24px 48px -24px rgba(43,26,20,.25); }
.auth-card .logo img { height:42px; margin-bottom:1.75rem; }
.auth-check { width:68px; height:68px; margin:0 auto 1.25rem; border-radius:50%; display:grid; place-items:center; background:#fdeee6; color:var(--brique,#c2410c); font-size:2rem; }
.auth-card h1 { font-size:1.45rem; font-weight:700; color:#2a1f1a; margin:0 0 .5rem; }
.auth-card p { color:#7a6b62; font-size:.95rem; line-height:1.6; margin:0 0 1.75rem; }
.auth-card p b { color:#2a1f1a; font-weight:600; }
.auth-card .auto { min-height:1.4rem; margin-top:1.1rem; font-size:.82rem; color:#9b8a7e; }
.auth-card .auto button { border:0; background:none; padding:0; color:#c2410c; font-weight:600; cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.auth-card .tip { display:flex; gap:.55rem; align-items:flex-start; text-align:left; margin-top:1.5rem; padding:.8rem .95rem; border-radius:12px; background:#faf6f1; color:#7a6b62; font-size:.8rem; line-height:1.5; }
.auth-card .tip i { color:#c2410c; font-size:1.05rem; line-height:1.3; }
.auth-solo .foot { margin-top:1.5rem; color:#9b8a7e; font-size:.78rem; text-align:center; }

@media (max-width: 900px) {
  .auth { grid-template-columns:1fr; }
  .auth-brand { display:none; }
  .auth-box .logo-mobile { display:block; }
  .auth-main { align-items:flex-start; padding-top:3.5rem; }
}
@media (prefers-reduced-motion: reduce) { .auth *, .auth-solo * { transition:none !important; } }
