/* Auth screens (sign in / reset / set password / done) — both surfaces.
   Tokens, layout and type transcribed from the Claude Design project
   "Flux Energy login redesign" (docs/login_redesign_plan.md §3). */

:root {
  --ink: #22262B;
  --body: #58595B;
  --body-2: #4A4F55;
  --muted: #7C8592;
  --border: #CFD6DE;
  --border-soft: #DEE5EC;
  --panel: #F7F9FB;
  --hover-bg: #EDF1F5;
  --blue: #2A6DB0;
  --blue-hover: #2E86C8;
  --blue-active: #1E5288;
  --blue-busy: #6E9BC6;
  --blue-disabled: #A9BFD4;
  --blue-tint: #EAF3FB;
  --focus-ring: rgba(42, 109, 176, 0.16);
  --panel-eyebrow: #14456F;
  --err-border: #E4B8B8;
  --err-bg: #FCF3F3;
  --err-text: #8E2B20;
  --err-badge: #C0392B;
  --ok: #1F7A4C;
  --ok-tint: #E9F5EE;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ---- two-column shell ---------------------------------------------------- */
.auth {
  min-height: 100vh;
  display: grid;
  /* Owner 2026-08-27: a true 1/3 white : 2/3 blue that scales with the viewport
     (the design's clamp(420px, 45%, 640px) shrank the white to a quarter on wide
     monitors). Tune the split here — e.g. `1fr 1fr` for half/half. */
  grid-template-columns: minmax(420px, 1fr) 2fr;
  background: #fff;
}
.auth__form {
  padding: clamp(48px, 6vw, 76px) clamp(40px, 5.5vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.auth__brand { display: inline-block; line-height: 0; }
.auth__lockup { width: 600px; max-width: 100%; height: auto; display: block; }   /* owner: up from the design's 236px */
.auth__content { display: flex; flex-direction: column; gap: 34px; margin-top: -40px; max-width: 640px; }
.auth__foot { max-width: 640px; }
.auth__head { display: flex; flex-direction: column; gap: 12px; }
.auth__title {
  font-size: 32px;                 /* owner: down from the design's 42px */
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.028em;
  margin: 0;
}
.auth__lead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
  max-width: 36ch;
  margin: 0;
  text-wrap: pretty;
}
.auth__foot { font-size: 14px; color: var(--body); margin: 0; }
.auth__foot a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
.auth__foot a:hover { color: var(--blue); text-decoration-color: currentColor; }

/* ---- fields ---------------------------------------------------------------- */
.auth__fields { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--body);
}
.field input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.toggle-pw {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--body);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.toggle-pw:hover { background: var(--hover-bg); color: var(--blue); }

/* ---- buttons & links --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms;
}
.btn:hover { background: var(--blue-hover); }
.btn:active { background: var(--blue-active); }
.btn[disabled] { background: var(--blue-busy); cursor: default; }
.btn.btn--pending { background: var(--blue-disabled); }
.btn.btn--pending:hover { background: var(--blue-disabled); }
.link { color: var(--blue); font-weight: 500; text-decoration: none; }
.link:hover { color: var(--blue-hover); text-decoration: underline; }
.forgot { font-size: 14px; }
.auth__after { font-size: 15px; color: var(--body); margin: 0; }

/* ---- alerts, cards, icon discs ----------------------------------------------- */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 15px;
  border: 1px solid var(--err-border);
  border-radius: 6px;
  background: var(--err-bg);
  color: var(--err-text);
  font-size: 14px;
  line-height: 1.45;
}
.alert__badge {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--err-badge);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.alert--info { border-color: var(--border-soft); background: var(--blue-tint); color: var(--body-2); }
.alert--info .alert__badge { background: var(--blue); }
.card {
  padding: 16px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--panel);
  font-size: 15px;
  line-height: 1.55;
  color: var(--body-2);
}
.card strong { color: var(--ink); font-weight: 600; }
.disc {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-tint);
  color: var(--blue);
}
.disc--ok { background: var(--ok-tint); color: var(--ok); }
.disc svg { width: 26px; height: 26px; }

/* ---- password rules --------------------------------------------------------- */
.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.rules li { display: flex; align-items: center; gap: 10px; }
.rules li::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 10px;
  color: #fff;
  display: grid;
  place-items: center;
}
.rules li.met { color: var(--ok); }
.rules li.met::before { content: '\2713'; background: var(--ok); border-color: var(--ok); }

/* ---- right panel ------------------------------------------------------------- */
.panel {
  position: relative;
  color: #fff;
  background: linear-gradient(155deg, #45AEE2 0%, #2A6DB0 52%, #1E5288 100%);
  padding: clamp(48px, 6vw, 76px) clamp(40px, 5.5vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 80% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 62%);
  pointer-events: none;
}
.panel > * { position: relative; }
.panel__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--panel-eyebrow);
}
.panel__mid { display: flex; flex-direction: column; gap: 40px; }
.panel__statement {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;                       /* owner: no 22ch cap — the <br> sets the two lines */
  white-space: nowrap;             /* each line stays whole; the panel is hidden < 880px */
}
.panel__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.panel__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.92);
}
.panel__list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.panel__foot {
  font-family: 'JetBrains Mono', Consolas, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
}

/* ---- breakpoints (not in the design — plan D2) --------------------------------- */
@media (max-width: 880px) {
  .auth { grid-template-columns: 1fr; }
  .panel { display: none; }
  .auth__content { margin-top: 0; }
}
@media (max-width: 480px) {
  .auth__form { padding: 32px 24px; gap: 32px; }
  .auth__title { font-size: 28px; }
  .auth__lockup { width: 390px; }
}
