/* Handpick · connexion, inscription, mot de passe (même DA que l'admin) */
:root {
  --bg: #FBFBFA; --surface: #FFFFFF; --surface-2: #F3F2EF;
  --line: #E6E5E1; --line-strong: #CFCEC9;
  --text: #111111; --muted: #6B6B66;
  --solid-bg: #111111; --solid-text: #FBFBFA;
  --err: #B42318;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E10; --surface: #17171A; --surface-2: #1D1D21;
    --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.22);
    --text: #EDEDEA; --muted: #A3A39E; --solid-bg: #EDEDEA; --solid-text: #111111; --err: #FF8A80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E10; --surface: #17171A; --surface-2: #1D1D21;
  --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.22);
  --text: #EDEDEA; --muted: #A3A39E; --solid-bg: #EDEDEA; --solid-text: #111111; --err: #FF8A80;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--text); }
a:hover { opacity: .8; }

.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; padding: 36px clamp(22px, 6vw, 96px); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.auth-top p { margin: 0; font-size: 14px; color: var(--muted); }
.auth-top p a { font-weight: 600; }
.auth-logo { display: block; color: var(--text); }
.auth-logo svg { display: block; height: 28px; width: auto; }
.auth-center { flex-grow: 1; display: flex; align-items: center; }
.auth-box { width: 100%; max-width: 440px; margin: 48px 0; display: flex; flex-direction: column; gap: 18px; }
.auth-foot { margin: 0; font-size: 12px; color: var(--muted); }

.eyebrow { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.auth-box h1 { margin: 0; font-weight: 300; font-size: clamp(36px, 4vw, 46px); letter-spacing: -.02em; line-height: 1.06; }
.auth-box .lead { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.auth-head { display: flex; flex-direction: column; gap: 10px; }
.badge { align-self: flex-start; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

form.auth-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .label-row label { font-size: 13px; font-weight: 600; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.label-row a { font-size: 13px; font-weight: 500; color: var(--muted); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
input[type=email], input[type=password], input[type=text] {
  height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 14px; font: 400 15px Manrope, sans-serif; color: var(--text); width: 100%;
}
input::placeholder { color: var(--muted); opacity: .8; }
input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(127,127,127,.15); }
input.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.hint { font-size: 12px; color: var(--muted); margin: 0; }

.btn {
  min-height: 50px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  font: 600 14px Manrope, sans-serif; color: var(--text); cursor: pointer; text-decoration: none; padding: 0 22px;
}
.btn:hover { border-color: var(--text); opacity: 1; }
.btn.solid { background: var(--solid-bg); color: var(--solid-text); border-color: var(--solid-bg); }
.btn.solid:hover { opacity: .9; }
.btn.google { background: var(--surface); }
.sep { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.sep::before, .sep::after { content: ""; flex-grow: 1; height: 1px; background: var(--line); }
.alt { margin: 4px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.alt a { font-weight: 600; }
.auth-flash { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; line-height: 1.45; }
.note-box { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.5; }

/* Panneau noir de droite */
.auth-panel { flex: 1 1 520px; min-width: 0; min-height: 560px; background: #111111; color: #FBFBFA; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px, 5vw, 72px); position: relative; overflow: hidden; }
.auth-panel .eyebrow { color: #A3A39E; }
.auth-panel h2 { margin: 0; font-weight: 300; font-size: clamp(32px, 3.4vw, 52px); letter-spacing: -.02em; line-height: 1.06; max-width: 560px; }
.ap-hero { display: flex; flex-direction: column; gap: 32px; }
.ap-tiles { display: flex; gap: 14px; }
.ap-tile { position: relative; width: clamp(96px, 10vw, 150px); aspect-ratio: 15 / 19; border-radius: 16px; background: #2A2A2E; }
.ap-tile.on { box-shadow: 0 0 0 2px #FBFBFA; }
.ap-tile.low { background: #222225; margin-top: 30px; }
.ap-tile:nth-child(3) { background: #313136; }
.ap-btn { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: #FBFBFA; display: flex; align-items: center; justify-content: center; }
.ap-btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.35); }
.ap-btn svg { width: 16px; height: 16px; fill: none; stroke: #111111; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ap-btn.ghost svg { stroke: #FBFBFA; stroke-width: 2.2; }
.ap-note { margin: 0; font-size: 15px; line-height: 1.55; max-width: 440px; color: #C9C9C4; }
.ap-inner { display: flex; flex-direction: column; gap: 28px; max-width: 520px; margin: auto 0; }
.ap-list { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; }
.ap-list li { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); }
.ap-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.ap-list li span:first-child { font-family: "IBM Plex Mono", ui-monospace, monospace; color: #A3A39E; }
:root[data-theme="dark"] .auth-panel, .dark .auth-panel { background: #000000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-panel { background: #000000; } }
@media (max-width: 1080px) { .auth-panel { min-height: 0; } .auth-panel .ap-tiles { display: none; } }
