/* =====================================================================
   Web3 Ledger — auth (login / register)
   Same language as the public site: near-black ground, one flat panel,
   uppercase display heading, squared controls, no border lines.
   ===================================================================== */
:root{
  --g0:#0a0a0b;          /* page ground   */
  --panel:#121214;       /* the card      */
  --field:#191919;       /* input surface */
  --field-on:#1f1f21;    /* input focused */
  --ink:#f2f2f3;
  --ink-2:#8d8d94;
  --ink-3:#5d5d64;
  --acc:#fcd535;
  --acc-ink:#12161c;
  --pos:#3ddc84;
  --bad:#e8737d;
  --mono:var(--font-mono);
  --font-site:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}

body.wl-auth-page,
body.wl-auth-page h1,body.wl-auth-page p,body.wl-auth-page label,
body.wl-auth-page input,body.wl-auth-page button,body.wl-auth-page a{
  font-family:var(--font-site);
  font-feature-settings:normal}

body.wl-auth-page{
  margin:0;min-height:100dvh;
  background:var(--g0);color:var(--ink);
  letter-spacing:-.008em;
  -webkit-font-smoothing:antialiased;
  display:grid;grid-template-rows:1fr auto;
  padding:28px 20px calc(20px + env(safe-area-inset-bottom));
}

/* ---------- the card ---------- */
.wl-pane{
  width:100%;max-width:420px;margin:auto;
  background:var(--panel);border-radius:18px;
  padding:34px 30px 30px;
}
@media (max-width:430px){
  body.wl-auth-page{padding:0}
  .wl-pane{max-width:none;min-height:100dvh;border-radius:0;padding:34px 22px}
}

/* ---------- brand ---------- */
.wl-brand{display:flex;align-items:center;text-decoration:none;margin-bottom:30px}
.wl-brand .mark{display:block;height:30px;width:auto;background:none;object-fit:contain}

/* ---------- heading ---------- */
.wl-head h1{
  margin:0;font-size:26px;font-weight:700;line-height:1.08;
  text-transform:uppercase;letter-spacing:-.03em}
.wl-head p{margin:12px 0 0;font-size:13.5px;line-height:1.7;color:var(--ink-2)}

/* ---------- fields ---------- */
.wl-form{margin-top:28px}
.wl-f{margin-bottom:12px}
.wl-f>label{
  display:flex;align-items:baseline;justify-content:space-between;gap:10px;
  font-size:10.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-3);margin-bottom:8px}
.wl-f>label i{font-style:normal;letter-spacing:.06em;font-weight:500;color:var(--ink-3)}

/* The container carries the shape; the input fills it edge to edge with no
   inset of its own. Chrome paints autofill on the INPUT, so if the input is
   inset inside a padded parent you get a square block floating in a rounded
   field — which is exactly what happens with any padding here. */
.wl-inp{
  display:flex;align-items:center;
  height:50px;padding:0;border-radius:10px;overflow:hidden;
  background:var(--field);border:0;
  transition:background .15s,outline-color .15s}
.wl-inp:focus-within{
  background:var(--field-on);
  /* outline draws OVER the input and follows border-radius; an inset
     box-shadow would sit underneath the autofill fill and disappear. */
  outline:1.5px solid var(--acc);outline-offset:-1.5px}
.wl-inp input{
  flex:1;min-width:0;height:100%;padding:0 14px;
  background:none;border:0;outline:none;border-radius:inherit;
  color:var(--ink);font:inherit;font-size:14.5px}
.wl-inp input::placeholder{color:var(--ink-3)}

/* Autofill: repaint the whole input box in the field colour, and keep the
   focused tone in sync so it does not flash a different shade. */
.wl-inp input:-webkit-autofill,
.wl-inp input:-webkit-autofill:hover,
.wl-inp input:-webkit-autofill:active{
  -webkit-text-fill-color:var(--ink);
  -webkit-box-shadow:0 0 0 1000px var(--field) inset;
  caret-color:var(--ink);
  transition:background-color 9999s ease-in-out 0s}
.wl-inp:focus-within input:-webkit-autofill,
.wl-inp input:-webkit-autofill:focus{
  -webkit-box-shadow:0 0 0 1000px var(--field-on) inset}

/* the reveal button needs its own inset now the container has none */
.wl-inp .wl-peek{margin-right:10px}

.wl-peek{background:none;border:0;padding:4px;flex:none;cursor:pointer;
  color:var(--ink-3);display:grid;place-items:center}
.wl-peek svg{width:17px;height:17px;display:block}
.wl-peek .off{display:none}
.wl-peek.is-on .on{display:none}
.wl-peek.is-on .off{display:block}
.wl-peek:hover{color:var(--ink)}

/* ---------- strength ---------- */
.wl-str{display:flex;align-items:center;gap:10px;margin-top:9px}
.wl-str .bars{display:flex;gap:3px;flex:1}
.wl-str i{flex:1;height:2px;border-radius:1px;background:var(--field-on)}
.wl-str b{font-family:var(--mono);font-size:10px;font-weight:500;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ink-3);min-width:46px;text-align:right}
.wl-str[data-level="1"] i:nth-child(-n+1){background:var(--bad)}
.wl-str[data-level="2"] i:nth-child(-n+2){background:#d19a5c}
.wl-str[data-level="3"] i:nth-child(-n+3){background:#b8c46a}
.wl-str[data-level="4"] i{background:var(--pos)}

/* ---------- row ---------- */
.wl-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 20px}
.wl-check{display:inline-flex;align-items:center;gap:9px;cursor:pointer;
  font-size:12.5px;color:var(--ink-2);user-select:none}
.wl-check input{position:absolute;opacity:0;width:0;height:0}
.wl-check .box{width:17px;height:17px;border-radius:5px;flex:none;
  background:var(--field-on);display:grid;place-items:center}
.wl-check .box svg{width:10px;height:10px;color:var(--acc-ink);opacity:0}
.wl-check input:checked+.box{background:var(--acc)}
.wl-check input:checked+.box svg{opacity:1}
.wl-check input:focus-visible+.box{box-shadow:0 0 0 3px rgba(252, 213, 53,.35)}
.wl-mini{font-size:12.5px;color:var(--ink-2);text-decoration:none}
.wl-mini:hover{color:var(--ink)}

/* ---------- submit ---------- */
.wl-go{
  width:100%;height:50px;border:0;border-radius:8px;cursor:pointer;
  background:var(--acc);color:var(--acc-ink);
  font:inherit;font-size:14.5px;font-weight:600;
  transition:background .15s}
.wl-go:hover{background:#f0b90b}
.wl-go:disabled{opacity:.5;cursor:not-allowed}

.wl-fine{margin:16px 0 0;font-size:11.5px;line-height:1.7;color:var(--ink-3);text-align:center}
.wl-fine a{color:var(--ink-2);text-decoration:underline}

/* ---------- switch ---------- */
.wl-switch{
  margin-top:26px;padding-top:22px;text-align:center;
  font-size:13px;color:var(--ink-2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.wl-switch a{color:var(--ink);text-decoration:none;font-weight:600;margin-left:5px}
.wl-switch a:hover{color:var(--acc)}

/* ---------- page footer ---------- */
.wl-foot{
  margin:0;padding-top:22px;text-align:center;
  font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--ink-3)}

/* ---------- 6-digit code entry (keypad.js inside the auth card) ---------- */
.wl-code{margin-top:26px}
.wl-code [data-dots]{display:flex;justify-content:center}
.wl-code .wl-dots{gap:12px;margin:6px 0 26px}
.wl-code .wl-dots i{width:11px;height:11px;background:var(--field-on)}
.wl-code .wl-dots i.on{background:var(--acc);transform:scale(1.08)}
.wl-code [data-pad]{display:flex;justify-content:center}
.wl-code .wl-kp{
  grid-template-columns:repeat(3,1fr);gap:8px;
  width:100%;max-width:300px}
.wl-code .wl-kp button{
  height:56px;border-radius:14px;background:var(--field);
  font:600 22px/1 var(--mono);color:var(--ink)}
.wl-code .wl-kp button:active{background:var(--field-on)}
.wl-code .wl-kp button.wl-kp-ghost{background:transparent}
.wl-head p.is-error{color:var(--bad)}
