/* ═══════════════════════════════════════════════════════════════════
   WalletLab — écran de connexion
   Tokens autonomes — fonctionne sans crm.css
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --surface:      #FFFFFF;
  --ink:          #0A0F0C;
  --ink-2:        #39443D;
  --line-2:       rgba(10, 15, 12, 0.13);
  --green:        #0E9D5C;
  --green-bright: #2FD46A;
  --green-soft:   rgba(14, 157, 92, 0.10);
  --red:          #E0563B;
  --mono:         "JetBrains Mono", ui-monospace, Menlo, monospace;
}
:root.dark {
  --surface:  #0e1c16;
  --ink:      #f1f5ef;
  --ink-2:    #a8bdb0;
  --line-2:   rgba(245, 247, 244, 0.14);
}
.auth {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}
.auth.centered { grid-template-columns: 1fr; }
.auth.centered .auth-visual { display: none; }

/* ── Panneau visuel ────────────────────────────────────────────────── */
.auth-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #0d4a33 0%, #06271B 60%);
  color: var(--side-ink);
  padding: 44px 52px;
  display: flex;
  flex-direction: column;
}
.auth-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(64% 44% at 22% 6%, rgba(47,212,106,.20), transparent 60%);
  pointer-events: none;
}
.auth-visual::after {
  content: '';
  position: absolute; right: -120px; bottom: -160px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,212,106,.12), transparent 68%);
  pointer-events: none;
}
.auth-visual > * { position: relative; z-index: 1; }
.av-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.av-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg, var(--green-bright), var(--green)); display: grid; place-items: center; color: var(--green-deep); box-shadow: 0 6px 18px rgba(47,212,106,.4); }
.av-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 24px; max-width: 460px; padding: 18px 0; }
.av-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-bright); }
.av-head { font-size: 37px; font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.av-head em { font-style: normal; color: var(--green-bright); }
.av-sub { font-size: 15.5px; line-height: 1.5; color: rgba(234,246,239,.74); max-width: 400px; }

/* carte fidélité flottante */
.av-card {
  align-self: flex-start;
  width: 300px;
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(150deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.6);
}
.avc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.avc-brand { display: flex; align-items: center; gap: 10px; }
.avc-logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(145deg, var(--green-bright), var(--green)); display: grid; place-items: center; color: var(--green-deep); font-weight: 800; font-size: 14px; }
.avc-nm { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.avc-sub { font-size: 9px; font-family: var(--mono); color: rgba(234,246,239,.5); letter-spacing: .06em; }
.avc-count { display: flex; align-items: baseline; gap: 6px; margin-bottom: 13px; }
.avc-count .b { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; }
.avc-count .o { font-size: 15px; opacity: .5; }
.avc-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.avcs { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; }
.avcs.on { background: linear-gradient(145deg, var(--green-bright), var(--green)); color: var(--green-deep); }
.avcs.off { border: 1.4px dashed rgba(234,246,239,.22); }

.av-foot { display: flex; align-items: center; gap: 22px; }
.avf-stat .v { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.avf-stat .l { font-size: 12px; color: rgba(234,246,239,.6); margin-top: 2px; }
.avf-div { width: 1px; height: 34px; background: rgba(255,255,255,.14); }

/* ── Panneau formulaire ────────────────────────────────────────────── */
.auth-form {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 44px;
  background: var(--bg);
}
.af-inner { width: 100%; max-width: 384px; }
.af-logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -0.03em; margin-bottom: 40px; }
.af-logo .m { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, var(--green-bright), var(--green)); display: grid; place-items: center; color: var(--green-deep); box-shadow: 0 4px 14px rgba(47,212,106,.32); }
.af-title { font-size: 27px; font-weight: 800; letter-spacing: -0.035em; }
.af-desc { font-size: 14.5px; color: var(--muted); margin-top: 7px; }

.af-fields { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.af-field { display: flex; flex-direction: column; gap: 7px; }
.af-label-row { display: flex; align-items: center; justify-content: space-between; }
.af-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.af-forgot { font-size: 12.5px; font-weight: 600; color: var(--green); }
.af-forgot:hover { text-decoration: underline; }
.af-input {
  position: relative;
  display: flex; align-items: center;
  height: 50px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 14px;
  gap: 11px;
  transition: border-color .16s, box-shadow .16s;
}
.af-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.af-input .ic { color: var(--muted-2); flex-shrink: 0; }
.af-input input { flex: 1; border: 0; outline: 0; background: none; font-family: inherit; font-size: 15px; color: var(--ink); }
.af-input input::placeholder { color: var(--muted-2); }
.af-eye { color: var(--muted-2); padding: 4px; display: grid; place-items: center; border-radius: 7px; background: none; border: none; cursor: pointer; }
.af-eye:hover { color: var(--ink-2); }

.af-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; user-select: none; }
.af-box { width: 19px; height: 19px; border-radius: 6px; border: 1.6px solid var(--line-2); display: grid; place-items: center; color: #fff; transition: all .15s; flex-shrink: 0; }
.af-check.on .af-box { background: var(--green); border-color: var(--green); }

.af-submit { width: 100%; height: 50px; justify-content: center; margin-top: 26px; font-size: 15px; display: flex; align-items: center; gap: 8px; background: var(--green); color: #fff; border: none; border-radius: 13px; font-family: inherit; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.af-submit:hover { opacity: .9; }
.af-submit:disabled { opacity: .55; cursor: not-allowed; }

.af-error { background: rgba(224,86,59,.10); border: 1px solid rgba(224,86,59,.25); border-radius: 10px; padding: 11px 14px; font-size: 13.5px; color: var(--red); margin-top: 4px; }

.af-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--muted-2); font-size: 12.5px; }
.af-divider::before, .af-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.af-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 26px; }
.af-foot a { font-weight: 600; color: var(--green); }
.af-foot a:hover { text-decoration: underline; }

.af-legal { text-align: center; font-size: 11.5px; color: var(--muted-2); line-height: 1.5; margin-top: 36px; }
.af-legal a { color: var(--muted); text-decoration: underline; }

@media (max-width: 920px) {
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
