/* NeuroLabs Wholesale — shared styling for auth + account pages.
   Matches the gate (index.html): Barlow/Barlow Condensed/DM Mono, navy/blue/green. */
:root {
  --navy: #0F1F3D;
  --blue: #1A56DB;
  --blue-d: #1442ab;
  --green: #059669;
  --red: #dc2626;
  --bg: #eef1f5;
  --bg2: #f8fafc;
  --card: #ffffff;
  --line: #e6e8ec;
  --muted: #64748b;
  --muted2: #94a3b8;
  --field: #f8fafc;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: radial-gradient(900px 520px at 50% -8%, #fff 0%, var(--bg2) 42%, var(--bg) 100%);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15,31,61,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}
.card {
  position: relative; z-index: 1;
  width: min(452px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 38px 30px;
  box-shadow: 0 30px 70px -20px rgba(15,31,61,.22), 0 4px 14px rgba(15,31,61,.05);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), #3b76f0 55%, var(--green));
}
.brand { text-align: center; margin-bottom: 22px; }
.brand .mark { display: inline-flex; margin-bottom: 12px; }
.logo {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  letter-spacing: .16em; font-size: 28px; line-height: 1; text-transform: uppercase;
}
.logo b { color: var(--blue); }
.tag {
  margin-top: 7px; font-size: 10.5px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--muted2); font-weight: 500;
}
h1 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600;
  font-size: 23px; letter-spacing: .01em; margin: 0 0 6px; text-align: center;
}
.lede { font-size: 13.5px; color: var(--muted); margin: 0 0 22px; line-height: 1.6; text-align: center; }
.field { margin-bottom: 15px; }
.field label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: #475569; margin-bottom: 6px;
}
.input {
  width: 100%; padding: 12px 13px; font-size: 14.5px; font-family: inherit;
  color: var(--navy); background: var(--field);
  border: 1px solid var(--line); border-radius: 11px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: var(--muted2); }
.input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.input.mono { font-family: "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.hint { font-size: 11.5px; color: var(--muted2); margin: 5px 0 0; line-height: 1.4; }
.btn {
  width: 100%; margin-top: 8px; padding: 14px 18px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, var(--blue), var(--blue-d)); color: #fff;
  font-family: "Barlow", sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .02em;
  cursor: pointer; box-shadow: 0 8px 18px -6px rgba(26,86,219,.5);
  transition: transform .06s, box-shadow .15s, filter .15s;
}
.btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(26,86,219,.6); }
.btn:not(:disabled):active { transform: translateY(0); }
.btn:disabled { background: #cdd5e1; box-shadow: none; cursor: not-allowed; }
.btn.ghost {
  background: #fff; color: var(--blue); border: 1px solid var(--line); box-shadow: none;
}
.alt { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.alt a { color: var(--blue); text-decoration: none; font-weight: 600; }
.alt a:hover { text-decoration: underline; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.msg {
  display: none; margin: 0 0 18px; padding: 11px 13px; border-radius: 11px;
  font-size: 13px; line-height: 1.5;
}
.msg.show { display: block; }
.msg.err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.msg.ok  { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.steps { display: flex; gap: 6px; justify-content: center; margin-bottom: 20px; }
.steps i {
  width: 26px; height: 4px; border-radius: 2px; background: var(--line); transition: background .2s;
}
.steps i.on { background: var(--blue); }
.step { display: none; }
.step.on { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.legal {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid #f0f2f5;
  font-size: 10.5px; line-height: 1.5; color: var(--muted2); text-align: center;
}
.legal .mono { font-family: "DM Mono", monospace; letter-spacing: -.02em; }
.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: rot .6s linear infinite; vertical-align: -2px; }
@keyframes rot { to { transform: rotate(360deg); } }
