/* Auth pages — shared styles layered on top of /landing/styles.css */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 80px 20px 40px;
  position: relative;
  z-index: 1;
}
.auth-topbar {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 20px 28px;
  display: flex; align-items: center; gap: 10px;
  z-index: 10;
}
.auth-topbar a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.auth-topbar .wordmark {
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
}
.auth-topbar .wordmark span { color: var(--green-glow); }

/* Decorative faint sigil pinned off-centre */
.auth-deco {
  position: fixed;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 36px 32px 32px;
  position: relative;
  z-index: 1;
}
.auth-card .sigil-head {
  display: flex; justify-content: center;
  margin-bottom: 18px;
}
.auth-card .eyebrow {
  display: block;
  color: var(--ink-faint);
  margin-bottom: 10px;
  text-align: left;
}
.auth-card h1 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.auth-card h1 .mono {
  color: var(--green-glow);
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
}
.auth-card .sub {
  color: var(--ink-dim);
  font-size: 14.5px;
  margin-bottom: 24px;
  line-height: 1.55;
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field > label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-dim);
}
/* Required-field marker — matches the .uc-req pattern used in admin user
   forms. Accent colour signals "you must fill this" without relying on
   colour alone (the word "required" is still readable in monochrome).
   (WCAG 1.3.1 + 3.3.2) */
.field > label .req {
  margin-left: 6px;
  font-family: 'DM Sans', system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--green, #1D9E75);
}
.input-shell {
  position: relative;
}
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: inherit; font-size: 14.5px;
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.auth-card input:focus-visible {
  border-color: rgba(43, 211, 154, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(43, 211, 154, 0.12);
}
/* Chrome / Safari paint autofilled inputs with their own pale yellow/blue
   regardless of the declared background. The only reliable override is to
   paint over it with a matching-colour inset box-shadow and pin the text
   fill colour. The long transition delay prevents the flash of yellow
   before the shadow kicks in. */
.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus,
.auth-card input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-2) inset !important;
          box-shadow: 0 0 0 1000px var(--bg-2) inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
  border-color: var(--line);
  transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
}
.auth-card input:-webkit-autofill:focus-visible {
  border-color: rgba(43, 211, 154, 0.5);
}
.auth-card input[type="password"] + .eye,
.auth-card .input-shell .eye {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--ink-faint);
  background: none; border: none; cursor: pointer;
  border-radius: 6px;
}
.auth-card .eye:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.forgot-row {
  display: flex; justify-content: flex-end;
  margin-top: 2px;
}
.forgot-row a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  color: var(--ink-dim);
  text-decoration: none;
}
.forgot-row a:hover { color: var(--green-glow); }

.error-slot {
  display: none;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
}
.error-slot.on { display: block; }

.auth-card .btn-primary {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 14px;
}
.auth-card .btn-primary[aria-busy="true"] {
  opacity: 0.7; cursor: wait;
}

.auth-card .secondary-row {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-dim);
  text-align: center;
}
.auth-card .secondary-row a {
  color: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 1px;
}
.auth-card .secondary-row a:hover { border-color: var(--green-glow); color: var(--green-glow); }

.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--ink-faint);
}
.auth-footer a { color: var(--ink-dim); }
.auth-footer a:hover { color: var(--ink); }

/* Success / error state cards */
.state-card { text-align: center; padding: 8px 4px 4px; }
.state-circle {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 18px;
}
.state-circle.ok {
  background: rgba(43,211,154,0.12);
  border: 1px solid rgba(43,211,154,0.3);
  color: var(--green-glow);
}
.state-circle.err {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.state-card h1 { font-size: 24px; margin-bottom: 10px; }
.state-card .sub { margin-bottom: 22px; }

/* Password strength + match */
.strength {
  display: flex; align-items: center; gap: 10px;
  margin-top: 6px;
}
.strength-bar {
  display: flex; gap: 4px; flex: 1;
}
.strength-bar .seg {
  flex: 1; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.06);
  transition: background .2s ease;
}
.strength-bar .seg.on-1 { background: #ef4444; }
.strength-bar .seg.on-2 { background: #f97316; }
.strength-bar .seg.on-3 { background: #EF9F27; }
.strength-bar .seg.on-4 { background: var(--green-glow); }
.strength-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10.5px;
  color: var(--ink-faint);
  min-width: 62px;
  text-align: right;
}
.match-line {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-dim);
}
.match-line.on { display: block; }
.match-line.ok { color: var(--green-glow); }
.match-line.no { color: #fca5a5; }
