/* ========================================
   LOGIN PAGE
   Builds on style.css tokens (--primary, --line, …)
======================================== */

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.login-page {
  --accent: #55e1bd;
  --accent-2: #4ea8ff;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: Consolas, ui-monospace, monospace;

  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 15% 10%, rgba(53, 145, 184, 0.14), transparent 35%),
    radial-gradient(circle at 85% 90%, rgba(85, 225, 189, 0.08), transparent 40%),
    #050b14;
}

/* faint grid, faded towards the edges */
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 171, 201, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 171, 201, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%);
}

.login-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.login-orb {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.orb-a {
  top: -120px;
  right: 10%;
  background: #1d6f8f;
}

.orb-b {
  bottom: -160px;
  left: 5%;
  background: #1b7a63;
  animation-delay: -9s;
}

@keyframes orb-drift {
  to {
    transform: translate(60px, 40px) scale(1.15);
  }
}

/* entrance */
.rise {
  opacity: 0;
  translate: 0 18px;
  animation: rise 0.8s var(--ease) var(--d, 0s) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ========================================
   TOP BAR
======================================== */

.login-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 32px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #edf5ff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}

.login-brand .logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  fill: #07111d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px -6px rgba(85, 225, 189, 0.7);
}

.login-brand .logo-text span {
  color: var(--accent);
}

.login-back {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  background: rgba(11, 20, 34, 0.6);
  transition:
    color 0.2s,
    border-color 0.2s;
}

.login-back:hover {
  color: var(--accent);
  border-color: rgba(85, 225, 189, 0.4);
}

/* ========================================
   LAYOUT
======================================== */

.login-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
  max-width: 1200px;
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 10px 32px 48px;
}

/* ========================================
   HERO
======================================== */

.login-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(85, 225, 189, 0.25);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: rgba(85, 225, 189, 0.08);
}

.login-page .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(85, 225, 189, 0.6);
  animation: ping 1.8s infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 10px rgba(85, 225, 189, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(85, 225, 189, 0);
  }
}

.login-title {
  margin: 20px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.login-title .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 6s linear infinite;
}

@keyframes grad-shift {
  to {
    background-position: 200% center;
  }
}

.login-lead {
  max-width: 520px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

/* ---------- security console ---------- */

.login-console {
  max-width: 540px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 16, 28, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.console-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1f3048;
}

.console-bar i:first-child {
  background: #ff647c;
}
.console-bar i:nth-child(2) {
  background: #ffb65c;
}
.console-bar i:nth-child(3) {
  background: var(--accent);
}

.console-bar span {
  margin-left: 10px;
}

.console-body {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 20px;
}

/* fingerprint scanner */
.fp-scan {
  position: relative;
  width: 116px;
  height: 138px;
  padding: 10px;
}

.fp-scan svg {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
}

.fp-base path {
  stroke: rgba(129, 144, 166, 0.35);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.4s var(--ease) calc(0.5s + var(--i) * 0.08s) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.fp-lit {
  stroke: var(--accent);
  filter: drop-shadow(0 0 4px rgba(85, 225, 189, 0.8));
  clip-path: inset(0 0 100% 0);
  animation: fp-reveal 3.2s ease-in-out 1.2s infinite alternate;
}

@keyframes fp-reveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.fp-beam {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow:
    0 0 12px 2px rgba(85, 225, 189, 0.7),
    0 0 40px 6px rgba(85, 225, 189, 0.25);
  opacity: 0;
  animation: beam 3.2s ease-in-out 1.2s infinite alternate;
}

@keyframes beam {
  0% {
    top: 10px;
    opacity: 1;
  }
  100% {
    top: calc(100% - 12px);
    opacity: 1;
  }
}

.fp-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(85, 225, 189, 0.7);
}

.fp-corner.tl {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 6px;
}
.fp-corner.tr {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 6px;
}
.fp-corner.bl {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 6px;
}
.fp-corner.br {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 6px;
}

/* status + terminal */
.console-log {
  min-width: 0;
}

.fp-status {
  --state: var(--accent);
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--state);
  background: color-mix(in srgb, var(--state) 12%, transparent);
  transition:
    color 0.3s,
    background 0.3s;
}

.fp-status[data-state="busy"] {
  --state: var(--accent-2);
  animation: blink 1s steps(2) infinite;
}
.fp-status[data-state="warn"] {
  --state: #ffb65c;
}
.fp-status[data-state="error"] {
  --state: #ff647c;
}

@keyframes blink {
  50% {
    opacity: 0.55;
  }
}

.term {
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 104px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #b9c6d8;
}

.term li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.term li::before {
  display: inline-block;
  width: 18px;
  font-weight: 700;
}

.term .sys::before {
  content: "›";
  color: var(--muted);
}
.term .ok::before {
  content: "✓";
  color: var(--accent);
}
.term .warn::before {
  content: "!";
  color: #ffb65c;
}
.term .err::before {
  content: "×";
  color: #ff647c;
}

.term li:last-child::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1s steps(2) infinite;
}

/* feature chips */
.login-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.login-features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(11, 20, 34, 0.6);
}

.login-features b {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
}

/* ========================================
   AUTH CARD
======================================== */

.login-shell {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  padding: 1px;
  border-radius: 24px;
  background:
    conic-gradient(
      from var(--spin),
      transparent 0 55%,
      rgba(85, 225, 189, 0.9) 70%,
      rgba(78, 168, 255, 0.9) 82%,
      transparent 95%
    ),
    linear-gradient(rgba(148, 171, 201, 0.16), rgba(148, 171, 201, 0.16));
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.8),
    0 0 80px -30px rgba(85, 225, 189, 0.35);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s var(--ease);
}

.login-shell.rise {
  animation:
    rise 0.8s var(--ease) var(--d, 0s) forwards,
    spin 7s linear infinite;
}

@keyframes spin {
  to {
    --spin: 360deg;
  }
}

.login-card {
  position: relative;
  padding: 34px;
  border-radius: 23px;
  background: rgba(8, 15, 27, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

/* cursor spotlight */
.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(85, 225, 189, 0.09),
    transparent 45%
  );
  pointer-events: none;
}

.login-card > * {
  position: relative;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(85, 225, 189, 0.3);
  background: rgba(85, 225, 189, 0.08);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
}

.login-card h2 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.01em;
}

.card-sub {
  margin: 14px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.login-card .alert {
  margin: 0 0 16px;
  opacity: 1;
  animation: shake 0.4s;
}

.login-card .alert.success {
  animation: none;
}

@keyframes shake {
  25% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
}

/* ---------- floating-label fields ---------- */

.field {
  position: relative;
  margin-bottom: 14px;
}

.field input {
  height: 58px;
  margin: 0;
  padding: 22px 46px 6px 46px;
  border: 1px solid rgba(148, 171, 201, 0.16);
  border-radius: 14px;
  background: rgba(5, 11, 20, 0.75);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.field input:hover {
  border-color: rgba(148, 171, 201, 0.3);
}

.field input:focus {
  outline: none;
  border-color: rgba(85, 225, 189, 0.65);
  background: rgba(5, 11, 20, 0.95);
  box-shadow: 0 0 0 4px rgba(85, 225, 189, 0.12);
}

/* keep autofill on-theme */
.field input:-webkit-autofill {
  -webkit-text-fill-color: #edf5ff;
  -webkit-box-shadow: 0 0 0 100px #08111e inset;
  caret-color: #edf5ff;
}

.field label {
  position: absolute;
  left: 46px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
  transition: all 0.2s var(--ease);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field input:-webkit-autofill + label {
  top: 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.field-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.field:focus-within .field-icon {
  stroke: var(--accent);
}

.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  transform: translateY(-50%);
  background: transparent;
  cursor: pointer;
}

.pw-toggle:hover,
.pw-toggle:focus-visible {
  background: rgba(148, 171, 201, 0.1);
}

.pw-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pw-toggle .eye-off,
.pw-toggle[aria-pressed="true"] .eye-on {
  display: none;
}

.pw-toggle[aria-pressed="true"] .eye-off {
  display: block;
}

.caps-hint {
  display: block;
  margin: -6px 0 12px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #ffb65c;
}

.caps-hint[hidden] {
  display: none;
}

/* ---------- buttons ---------- */

.login-card .btn {
  position: relative;
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border-radius: 14px;
  font-size: 15px;
  overflow: hidden;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s,
    background 0.2s,
    border-color 0.2s;
}

.login-submit {
  color: #06121d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px -12px rgba(85, 225, 189, 0.7);
}

/* light sweep across the button */
.login-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(85, 225, 189, 0.85);
}

.login-submit:hover::after {
  transform: translateX(120%);
}

.login-submit:disabled {
  cursor: progress;
  transform: none;
  background-size: 200% 100%;
  background-image: linear-gradient(110deg, var(--accent) 35%, #b8fbe9 50%, var(--accent-2) 65%);
  animation: busy 1.1s linear infinite;
}

@keyframes busy {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.login-card .btn.ghost {
  border: 1px solid var(--line);
  background: rgba(14, 25, 41, 0.8);
}

.login-card .btn.ghost:hover {
  border-color: rgba(85, 225, 189, 0.4);
}

.login-card .btn:focus-visible,
.login-back:focus-visible,
.login-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.login-card .google-account-divider {
  margin: 22px 0 16px;
}

.login-card .google-account-divider::before,
.login-card .google-account-divider::after {
  border-color: var(--line);
}

.login-card .google-account-divider span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.login-card .google-btn {
  margin-top: 0;
  color: #edf5ff;
  border: 1px solid rgba(148, 171, 201, 0.2);
  background: rgba(14, 25, 41, 0.8);
}

.login-card .google-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 171, 201, 0.4);
  background: rgba(20, 34, 54, 0.9);
}

.card-foot {
  margin: 20px 0 0;
  text-align: center;
  color: var(--muted);
}

.card-foot a {
  font-weight: 700;
}

/* ---------- MFA step ---------- */

#mfaLoginForm {
  animation: rise 0.5s var(--ease);
}

.otp-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.otp-input {
  height: 68px;
  margin-bottom: 14px;
  border-radius: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 30px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  background: rgba(5, 11, 20, 0.75);
}

.otp-input:focus {
  outline: none;
  border-color: rgba(85, 225, 189, 0.65);
  box-shadow: 0 0 0 4px rgba(85, 225, 189, 0.12);
}

.otp-input::placeholder {
  color: rgba(129, 144, 166, 0.35);
}

/* ---------- trust row ---------- */

.card-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.card-trust span::before {
  content: "●";
  margin-right: 6px;
  font-size: 7px;
  vertical-align: 2px;
  color: var(--accent);
}

/* ========================================
   REGISTER PAGE
   (register.php reuses everything above)
======================================== */

.topbar-links {
  display: flex;
  gap: 10px;
}

.login-back.is-accent {
  color: #06121d;
  font-weight: 700;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.login-back.is-accent:hover {
  color: #06121d;
  box-shadow: 0 10px 24px -10px rgba(85, 225, 189, 0.8);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

/* ---------- password strength ---------- */

.strength {
  --tone: rgba(148, 171, 201, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.strength[data-level="1"] {
  --tone: #ff647c;
}
.strength[data-level="2"] {
  --tone: #ffb65c;
}
.strength[data-level="3"] {
  --tone: #4ea8ff;
}
.strength[data-level="4"] {
  --tone: var(--accent);
}

.strength:not([data-level="0"]) span {
  color: var(--tone);
}

.strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  flex: 1;
}

.strength-bars i {
  height: 5px;
  border-radius: 5px;
  background: rgba(148, 171, 201, 0.12);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.strength[data-level="1"] .strength-bars i:nth-child(-n + 1),
.strength[data-level="2"] .strength-bars i:nth-child(-n + 2),
.strength[data-level="3"] .strength-bars i:nth-child(-n + 3),
.strength[data-level="4"] .strength-bars i {
  background: var(--tone);
  box-shadow: 0 0 8px var(--tone);
}

.pw-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.pw-rules li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  transition: all 0.25s;
}

.pw-rules li::before {
  content: "○ ";
}

.pw-rules li.met {
  color: var(--accent);
  border-color: rgba(85, 225, 189, 0.35);
  background: rgba(85, 225, 189, 0.08);
}

.pw-rules li.met::before {
  content: "✓ ";
}

.match-hint {
  display: block;
  margin: -6px 0 12px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #ffb65c;
}

.match-hint[data-ok="true"] {
  color: var(--accent);
}

.match-hint[hidden] {
  display: none;
}

/* ---------- onboarding console ---------- */

.setup-ring {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 116px;
  height: 116px;
}

.setup-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  fill: none;
  stroke-width: 7;
}

.setup-ring circle {
  stroke: rgba(148, 171, 201, 0.12);
}

.setup-ring .ring-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px rgba(85, 225, 189, 0.7));
  transition: stroke-dashoffset 0.6s var(--ease);
}

.setup-ring strong {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
}

.setup-ring small {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}

.checklist li {
  transition: color 0.3s;
}

.checklist li::before {
  content: "○";
  display: inline-block;
  width: 18px;
  font-weight: 700;
}

.checklist li.done {
  color: #d3deec;
}

.checklist li.done::before {
  content: "✓";
  color: var(--accent);
}

.checklist li.next::before {
  content: "›";
  color: #ffb65c;
}

/* ========================================
   VERIFY EMAIL PAGE
======================================== */

button.login-back {
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.sent-to {
  color: #edf5ff;
  word-break: break-all;
}

.otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.otp-boxes .otp-label {
  grid-column: 1 / -1;
  padding: 0;
}

.otp-boxes input {
  height: 64px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(148, 171, 201, 0.16);
  border-radius: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  caret-color: var(--accent);
  background: rgba(5, 11, 20, 0.75);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s var(--ease);
}

.otp-boxes input:focus {
  outline: none;
  border-color: rgba(85, 225, 189, 0.65);
  box-shadow: 0 0 0 4px rgba(85, 225, 189, 0.12);
  transform: translateY(-2px);
}

.otp-boxes input:valid {
  border-color: rgba(85, 225, 189, 0.35);
}

.otp-boxes.bad {
  animation: shake 0.4s;
}

.otp-boxes.bad input {
  border-color: rgba(255, 100, 124, 0.6);
}

.otp-boxes.ok input {
  color: #06121d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px -10px rgba(85, 225, 189, 0.8);
}

.otp-meta {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

#expiryText[data-state="soon"] {
  color: #ffb65c;
}

#expiryText[data-state="expired"] {
  color: #ff647c;
}

/* onboarding journey */
.journey {
  margin: 0;
  padding: 20px;
  list-style: none;
  display: grid;
  gap: 4px;
}

.journey li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}

/* connector line between steps */
.journey li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 44px;
  height: 14px;
  width: 2px;
  background: var(--line);
}

.journey b {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
}

.journey div {
  display: grid;
  font-weight: 600;
}

.journey small {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.journey li.done {
  color: #d3deec;
}

.journey li.done b {
  color: #06121d;
  border-color: transparent;
  background: var(--accent);
  font-size: 0;
}

.journey li.done b::before {
  content: "✓";
  font-size: 15px;
}

.journey li.done::after {
  background: var(--accent);
}

.journey li.current {
  color: #edf5ff;
  background: rgba(85, 225, 189, 0.06);
}

.journey li.current b {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 0 rgba(85, 225, 189, 0.6);
  animation: ping 1.8s infinite;
}

@media (max-width: 560px) {
  .otp-boxes {
    gap: 6px;
  }

  .otp-boxes input {
    height: 54px;
    font-size: 22px;
  }
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 980px) {
  /* minmax(0, …) lets columns shrink below their content (e.g. no-wrap console lines) */
  .login-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    min-height: 0;
    max-width: 560px;
  }

  /* the form comes first on small screens */
  .login-shell {
    order: -1;
  }

  .login-title {
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  .login-topbar {
    padding: 16px;
  }

  .login-back {
    padding: 8px 12px;
    font-size: 13px;
  }

  .login-wrap {
    padding: 6px 16px 36px;
  }

  .login-card {
    padding: 24px 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .login-back {
    white-space: nowrap;
  }

  .console-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }

  .console-log {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-page *,
  .login-page *::before,
  .login-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
  }

  .fp-lit {
    clip-path: none;
  }

  .fp-beam {
    display: none;
  }
}
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
/* forgot password (same answer whether or not the account exists) */
.forgot-link {
  display: block;
  margin: -4px 0 12px auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary, #55e1bd);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.forgot-link:hover {
  text-decoration: underline;
}

.forgot-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* the WhoLeakMe logo image (round; replaces the old letter / footprint mark) */
img.logo-img,
.login-brand img.logo-mark,
.nav-logo img.logo-mark {
  display: block;
  padding: 0;
  border-radius: 50%;
  background: none;
  object-fit: cover;
  box-shadow: 0 6px 20px -8px rgba(85, 225, 189, 0.6);
}
