:root {
  color-scheme: dark;
  --as-bg: #050706;
  --as-panel: #0d100e;
  --as-panel-soft: #111612;
  --as-line: #252d27;
  --as-text: #f1f5f1;
  --as-muted: #859087;
  --as-green: #00e878;
  --as-green-deep: #062315;
  --as-red: #ff7777;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--as-bg); }
body {
  min-height: 100dvh;
  margin: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  color: var(--as-text);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 232, 120, .075), transparent 48%),
    var(--as-bg);
  font-family: "Segoe UI", system-ui, sans-serif;
}
a { color: var(--as-green); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--as-green);
  outline-offset: 3px;
}
.security-shell { width: min(100%, 460px); }
.security-card {
  padding: clamp(26px, 7vw, 42px);
  border: 1px solid var(--as-line);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(17, 22, 18, .98), rgba(10, 12, 10, .98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .36);
  animation: card-in .42s ease both;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
}
.brand-mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 232, 120, .45);
  border-radius: 8px;
  color: var(--as-green);
  font-size: 11px;
}
.brand-accent { color: var(--as-green); }
.eyebrow { margin: 0 0 8px; color: var(--as-green); font-size: 10px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(25px, 6vw, 31px); line-height: 1.13; letter-spacing: -.7px; }
.intro { margin: 11px 0 27px; color: var(--as-muted); font-size: 14px; line-height: 1.65; }
.auth-label { display: block; margin: 0 0 7px; color: #a8b1aa; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.auth-input {
  width: 100%;
  min-height: 46px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--as-line);
  border-radius: 9px;
  color: var(--as-text);
  background: #080a08;
  font: inherit;
  font-size: 14px;
}
.auth-input::placeholder { color: #59615b; }
.auth-input:focus { border-color: var(--as-green); outline: none; }
.field-hint { margin: -10px 0 17px; color: #707a72; font-size: 12px; line-height: 1.5; }
.auth-btn {
  width: 100%;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 9px;
  color: #031108;
  background: var(--as-green);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  transition: transform .16s ease, background .16s ease, opacity .16s ease;
}
.auth-btn:hover:not(:disabled) { background: #27f28e; transform: translateY(-1px); }
.auth-btn:disabled { opacity: .55; cursor: wait; }
.secondary-btn {
  width: 100%;
  min-height: 45px;
  margin-top: 10px;
  padding: 11px 16px;
  border: 1px solid var(--as-line);
  border-radius: 9px;
  color: #c7d0c9;
  background: var(--as-panel-soft);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.secondary-btn:hover:not(:disabled) { border-color: #526057; background: #151b16; }
.secondary-btn:disabled { opacity: .5; cursor: wait; }
.notice { display: none; margin: 0 0 18px; padding: 11px 13px; border: 1px solid; border-radius: 9px; font-size: 13px; line-height: 1.5; }
.notice.show { display: block; }
.notice.error { color: #ffaaaa; border-color: rgba(255, 119, 119, .28); background: rgba(150, 32, 32, .12); }
.notice.success { color: #a5f3c5; border-color: rgba(0, 232, 120, .25); background: rgba(0, 232, 120, .07); }
.notice.info { color: #c1cbc3; border-color: var(--as-line); background: #0a0d0a; }
.security-footer { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--as-line); color: #778078; font-size: 12px; line-height: 1.7; text-align: center; }
.account-email { color: #dce5de; overflow-wrap: anywhere; }
.status-line { margin: -12px 0 20px; color: var(--as-muted); font-size: 12px; }
.status-line strong { color: var(--as-green); font-weight: 700; }
.button-link { display: block; margin-top: 16px; text-align: center; font-size: 13px; }
.button-link a, a.button-link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 520px) {
  body { padding: 14px; align-items: start; padding-top: max(22px, env(safe-area-inset-top)); }
  .security-card { border-radius: 16px; }
  .brand { margin-bottom: 28px; }
}
