/* ==========================================================================
   Authentification (connexion, inscription, code e-mail)
   ========================================================================== */
.auth-body { background: var(--cream); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 46% 54%; }

.auth-visual {
  background: var(--ink); color: var(--cream); position: relative; overflow: hidden;
  padding: 40px 48px; display: flex; flex-direction: column; min-height: 100vh;
}
.auth-visual::before {
  content: ''; position: absolute; width: 620px; height: 620px; right: -220px; top: -180px;
  background: radial-gradient(circle, rgba(123, 224, 168, .3), transparent 62%);
}
.auth-visual::after {
  content: ''; position: absolute; width: 460px; height: 460px; left: -240px; bottom: -200px;
  background: radial-gradient(circle, rgba(215, 255, 95, .16), transparent 65%);
}
.auth-visual .brand { position: relative; z-index: 3; color: var(--cream); }
.auth-visual-content { position: relative; z-index: 3; margin-top: auto; margin-bottom: auto; padding: 50px 0; max-width: 430px; }
.auth-visual h1 { font-size: clamp(34px, 4vw, 46px); letter-spacing: -2.2px; line-height: 1.04; margin-top: 18px; }
.auth-visual h1 .hl { color: var(--lime); }
.auth-visual > .auth-visual-content > p { color: #a2b5ac; font-size: 13.5px; line-height: 1.8; margin-top: 16px; max-width: 390px; }
.auth-points { display: grid; gap: 13px; margin-top: 28px; }
.auth-point { display: flex; align-items: center; gap: 11px; font-size: 12.5px; color: #cfdcd5; }
.auth-point .pt { width: 24px; height: 24px; border-radius: 50%; background: rgba(215, 255, 95, .1); border: 1px solid rgba(215,255,95,.22); color: var(--lime); display: grid; place-items: center; flex: none; }
.auth-point .pt svg { width: 12px; height: 12px; }
.auth-quote {
  position: relative; z-index: 3; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 18px 20px; backdrop-filter: blur(8px); max-width: 410px;
}
.auth-quote .stars { font-size: 10px; }
.auth-quote p { font-size: 12px; color: #d6e2dc; line-height: 1.7; margin-top: 8px; }
.auth-quote-author { display: flex; align-items: center; gap: 9px; margin-top: 13px; }
.auth-quote-author strong { font-size: 10.5px; display: block; }
.auth-quote-author span { font-size: 9px; color: #7f958a; }
.auth-visual-foot { position: absolute; left: 48px; right: 48px; bottom: 26px; z-index: 2; display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; color: #60766b; letter-spacing: .3px; }
.auth-visual-foot .live { display: inline-flex; align-items: center; gap: 6px; }
.auth-visual-foot .live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(123,224,168,.15); }
.auth-orbit {
  position: absolute; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%; right: -90px; bottom: 90px; z-index: 1;
}
.auth-orbit::after { content: ''; position: absolute; inset: 38px; border: 1px dashed rgba(255,255,255,.06); border-radius: 50%; }
.auth-orbit .sat { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); top: 40px; left: 44px; box-shadow: 0 0 18px 4px rgba(215,255,95,.4); }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 26px; position: relative; }
.auth-panel-inner { width: min(430px, 100%); }
.auth-mobile-brand { display: none; margin-bottom: 28px; }
.auth-back { position: absolute; top: 28px; left: 30px; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.auth-back svg { width: 13px; height: 13px; }
.auth-back:hover { color: var(--forest); }
.auth-panel h2 { font-size: 29px; letter-spacing: -1.3px; }
.auth-sub { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 7px; }
.auth-form { display: grid; gap: 15px; margin-top: 26px; }
.auth-form .btn { margin-top: 4px; padding: 14px 20px; }
.auth-divider { display: flex; align-items: center; gap: 12px; font-size: 9.5px; color: #a0aaa4; text-transform: uppercase; letter-spacing: 1.2px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-switch { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 22px; }
.auth-switch a { color: var(--forest); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-legal { text-align: center; font-size: 10px; color: #9aa49e; margin-top: 26px; line-height: 1.7; }
.auth-legal a { text-decoration: underline; text-underline-offset: 2px; }
.auth-trust { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.auth-trust span { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; color: #94a19a; }
.auth-trust svg { width: 12px; height: 12px; color: var(--success); }

/* Verify */
.verify-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 20% 10%, #143c2f, #08130e 60%); position: relative; overflow: hidden; }
.verify-page::after { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(215,255,95,.1), transparent 65%); right: -180px; bottom: -220px; }
.verify-card { width: min(480px, 100%); background: var(--paper); border-radius: var(--radius-xl); padding: 40px; position: relative; z-index: 2; box-shadow: var(--shadow-lg); text-align: center; }
.verify-card .brand { margin-bottom: 22px; display: inline-flex; }
.verify-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--lime-soft); color: var(--forest); display: grid; place-items: center; margin: 0 auto 18px; }
.verify-icon svg { width: 28px; height: 28px; }
.verify-card h1 { font-size: 25px; letter-spacing: -1.1px; }
.verify-card > p { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-top: 8px; }
.verify-card .email { color: var(--ink); font-weight: 600; }
.otp-form { margin-top: 24px; }
.otp-code {
  width: 100%; text-align: center; font-family: var(--font-display); font-size: 34px;
  letter-spacing: 14px; font-weight: 700; padding: 16px 10px 16px 24px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--white); color: var(--forest);
  transition: border-color .2s, box-shadow .2s;
}
.otp-code:focus { outline: none; border-color: var(--forest-3); box-shadow: 0 0 0 4px rgba(123,224,168,.2); }
.otp-code::placeholder { color: #d3d8d4; letter-spacing: 10px; }
.otp-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.otp-timer { font-size: 11px; color: var(--muted); }
.otp-timer b { color: var(--ink); font-variant-numeric: tabular-nums; }
.resend-form { display: inline; }
.link-button { border: 0; background: none; padding: 0; font-size: 11.5px; font-weight: 600; color: var(--forest); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:disabled { color: #a4ada7; cursor: not-allowed; text-decoration: none; }
.dev-code {
  margin-top: 18px; background: var(--warning-soft); border: 1px dashed #e3c58c; color: #74500f;
  border-radius: var(--radius-sm); padding: 13px 15px; font-size: 11.5px; line-height: 1.6; text-align: left;
}
.dev-code b { font-family: var(--font-display); font-size: 19px; letter-spacing: 4px; display: block; margin-top: 2px; }
.verify-links { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; align-items: center; font-size: 11.5px; color: var(--muted); }
.verify-links a { color: var(--forest); font-weight: 600; }

@media (max-width: 1024px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; }
  .auth-mobile-brand { display: block; }
  .auth-back { display: none; }
}
@media (max-width: 600px) {
  .auth-panel { padding: 70px 20px 40px; align-items: flex-start; }
  .auth-panel-inner { margin-inline: auto; }
  .auth-panel h2 { font-size: 25px; }
  .verify-card { padding: 28px 22px; border-radius: var(--radius-lg); }
  .verify-card h1 { font-size: 22px; }
  .otp-code { font-size: 28px; letter-spacing: 9px; padding-left: 18px; }
}
