/* Trackerady authentication — Option 10, production responsive visual system.
   Presentation only: all authentication requests remain in the original HTML. */
:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --auth-bg: #030407;
  --auth-text: #f6f7fb;
  --auth-muted: #b0b4be;
  --auth-gold: #ffd35c;
  --auth-yellow: #ffb800;
  --auth-amber: #ff8a00;
  --auth-line: rgba(255, 184, 0, .21);
  --auth-danger: #ff9caa;
  --auth-ok: #89e6b3;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--auth-bg); }
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 50% 48%, #181007 0%, #070606 40%, var(--auth-bg) 73%);
  color: var(--auth-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
.auth-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.auth-backdrop::before {
  content: "";
  position: absolute;
  width: min(1200px, 120vmax);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg) scaleY(.97);
  background: repeating-radial-gradient(ellipse at center, transparent 0 6.5%, rgba(255, 138, 0, .16) 7.4% 9.1%, rgba(255, 197, 62, .22) 9.6% 10.5%, transparent 11.5% 15%);
  border-radius: 50%;
  filter: blur(9px);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 15%, #000 30%, #000 51%, transparent 71%);
  mask-image: radial-gradient(ellipse at center, transparent 15%, #000 30%, #000 51%, transparent 71%);
}
.auth-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(2, 3, 7, .22) 53%, rgba(2, 3, 7, .8) 100%);
}
.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  min-width: 0;
  display: grid;
  gap: 20px;
}
.login {
  width: 100%;
  min-width: 0;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--auth-line);
  border-radius: 30px;
  background: radial-gradient(ellipse at 50% 0%, rgba(67, 50, 22, .68), rgba(14, 13, 11, .92) 52%, rgba(6, 7, 10, .97));
  box-shadow: inset 0 1px 0 rgba(255, 220, 130, .08), 0 38px 110px rgba(0, 0, 0, .65);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}
.card { min-width: 0; }
.brand { display: flex; justify-content: center; align-items: center; gap: 11px; margin-bottom: 22px; font-size: 24px; font-weight: 800; letter-spacing: -.035em; }
.logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--auth-gold), var(--auth-amber)); color: #241804; font-size: 24px; line-height: 1; box-shadow: 0 8px 24px rgba(255, 166, 0, .15); }
.badge { width: fit-content; max-width: 100%; display: flex; align-items: center; gap: 8px; margin: 0 auto 24px; padding: 7px 11px; border: 1px solid rgba(255, 184, 0, .22); border-radius: 999px; background: rgba(255, 184, 0, .07); color: var(--auth-gold); font-size: 11px; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.badge-dot { flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--auth-yellow); box-shadow: 0 0 12px rgba(255, 184, 0, .5); }
.panel { display: none; }
.panel.active { display: block; }
.step-label { color: var(--auth-gold); font-size: 12px; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; text-align: center; }
h1 { margin: 8px 0 10px; font-size: clamp(26px, 3.5vw, 32px); line-height: 1.15; letter-spacing: -.035em; text-align: center; overflow-wrap: break-word; }
.subtitle { margin: 0 0 26px; color: var(--auth-muted); font-size: 15px; line-height: 1.6; text-align: center; }
label, .field-label { display: block; margin: 17px 0 7px; color: #d6d7dd; font-size: 14px; font-weight: 600; }
input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  color: var(--auth-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
input:hover { border-color: rgba(255, 211, 92, .42); }
input:focus { outline: 2px solid var(--auth-gold); outline-offset: 3px; border-color: var(--auth-gold); background: rgba(255, 255, 255, .08); }
input::placeholder { color: #9599a4; opacity: 1; }
input[autocomplete="one-time-code"][inputmode="numeric"] { text-align: center; font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: .25em; padding-left: calc(16px + .25em); }
button, .button {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--auth-gold), var(--auth-yellow) 58%, var(--auth-amber));
  box-shadow: 0 10px 30px rgba(255, 154, 0, .13);
  color: #241804;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter .18s ease, border-color .18s ease, background-color .18s ease;
}
button:hover:not(:disabled), .button:hover { filter: brightness(1.07); }
button:active:not(:disabled), .button:active { filter: brightness(.95); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--auth-gold); outline-offset: 4px; }
button:disabled { opacity: .65; cursor: wait; }
button.secondary, .button.secondary { background: rgba(255, 255, 255, .04); color: var(--auth-text); border-color: rgba(255, 255, 255, .18); box-shadow: none; }
button.link { min-height: 44px; margin-top: 12px; padding: 9px 12px; background: transparent; color: var(--auth-gold); box-shadow: none; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.status { min-height: 22px; margin-top: 14px; color: var(--auth-muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.status.error { color: var(--auth-danger); }
.status.ok { color: var(--auth-ok); }
.secret { padding: 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(0, 0, 0, .3); color: var(--auth-gold); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; overflow-wrap: anywhere; user-select: all; }
.note { margin-top: 12px; color: var(--auth-muted); font-size: 13px; line-height: 1.6; }
.recovery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.recovery code { min-width: 0; padding: 10px 8px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 9px; background: rgba(0, 0, 0, .28); color: var(--auth-gold); font-size: 13px; overflow-wrap: anywhere; text-align: center; }
.security { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 14px; }
.chip { padding: 5px 8px; border: 1px solid rgba(255, 255, 255, .10); border-radius: 8px; background: rgba(255, 255, 255, .03); color: var(--auth-muted); font-size: 11px; }
.footer-mark { margin-top: 17px; text-align: center; color: var(--auth-muted); font-size: 12px; }
.brand-outside { text-align: center; color: #c3c3c6; }
.brand-outside strong { display: block; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.brand-outside span { display: block; margin-top: 3px; color: var(--auth-gold); font-size: 11px; letter-spacing: .035em; }
.local { display: none; margin-top: 18px; padding: 12px; border: 1px solid var(--auth-line); border-radius: 12px; color: var(--auth-muted); font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 639px) {
  body { padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .shell { gap: 16px; }
  .login { padding: 26px 22px; border-radius: 24px; }
  .brand { margin-bottom: 18px; }
  .badge { margin-bottom: 20px; }
  .auth-backdrop::before { width: 900px; opacity: .45; }
}
@media (max-width: 359px) {
  .login { padding: 22px 16px; }
  .badge { font-size: 10px; }
  .recovery { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .auth-backdrop { display: none; }
  input, button, .button, .login, .badge, .secret, .recovery code { border: 1px solid CanvasText; }
  .logo, button, .button { background: ButtonFace; color: ButtonText; }
}
