@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #0b1014;
  --panel: #11191f;
  --line: #223039;
  --text: #e6eef2;
  --muted: #8799a5;
  --cyan: #74e4e5;
  --green: #46d8a6;
  --red: #fa7b87;
  --amber: #eac987;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
[hidden] { display: none !important; }

.login-shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; max-width: 1560px; margin: 0 auto; padding: 0 44px; }
.page-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.brand-symbol { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border: 1px solid #376369; border-radius: 10px; background: #14272b; color: var(--cyan); font-size: 24px; font-weight: 800; font-style: italic; }
.brand strong { display: block; margin-bottom: 5px; font-size: 16px; letter-spacing: .12em; }
.brand small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .14em; overflow-wrap: anywhere; }
.readonly-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #31434e; border-radius: 5px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.login-main { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 52px 0 44px; }
.login-card { width: 100%; max-width: 456px; min-width: 0; padding: 32px; border: 1px solid #2b454d; border-radius: 12px; background: linear-gradient(135deg, #15282b 0%, var(--panel) 45%); box-shadow: 0 20px 70px #0003; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow { color: #8faeb3; font-size: 10px; font-weight: 600; line-height: 1.6; letter-spacing: .12em; overflow-wrap: anywhere; }
.access-mark { color: var(--cyan); font-size: 25px; line-height: 1; }
h1 { margin: 22px 0 10px; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.login-intro { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.safety-note { display: flex; align-items: flex-start; gap: 11px; margin: 25px 0 28px; padding: 14px; border: 1px solid #2c4446; border-radius: 8px; background: #142327; }
.safety-icon { display: grid; place-items: center; flex-shrink: 0; width: 19px; height: 19px; margin-top: 1px; border: 1px solid #3b6960; border-radius: 50%; color: var(--green); font-size: 12px; }
.safety-note strong { color: #c7dedc; font-size: 12px; font-weight: 500; line-height: 1.8; }
.safety-note p { margin: 4px 0 0; color: #9cb6b8; font-size: 12px; line-height: 1.8; }

form label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 500; }
.password-control { display: flex; align-items: center; min-width: 0; min-height: 52px; border: 1px solid #344952; border-radius: 7px; background: #0c1318; }
.password-control:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px #74e4e512; }
.password-control:has(input[aria-invalid="true"]) { border-color: var(--red); }
.password-control input { width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font-size: 16px; line-height: 1.5; }
.password-control input:focus-visible { outline-offset: -3px; }
.password-control input:read-only { color: #afc0ca; }
.password-toggle { align-self: stretch; min-width: 60px; flex-shrink: 0; margin: 4px; padding: 8px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--cyan); font-size: 12px; }
.password-toggle:hover { background: #213338; }
.field-hint { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.feedback { min-height: 50px; padding: 13px 0 12px; }
.login-error, .login-status { margin: 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.login-error { color: var(--red); }
.login-status { color: var(--muted); }
.login-status[data-kind="waiting"] { color: var(--amber); }
.login-status[data-kind="success"] { color: var(--green); }
.login-button { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 50px; padding: 12px 18px; border: 1px solid #83eff0; border-radius: 7px; background: var(--cyan); color: #0b2023; font-size: 14px; font-weight: 600; transition: background .15s, opacity .15s; }
.login-button:hover:not(:disabled) { background: #9aeff0; }
.login-button:disabled { opacity: .55; }
.login-button[aria-busy="true"] { cursor: wait; }
.button-arrow { font-size: 19px; font-weight: 400; }
.privacy-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; text-align: center; }
.noscript-note { margin: 16px 0 0; color: var(--amber); font-size: 12px; line-height: 1.8; }
.access-note { margin: 22px 0 0; padding: 0 8px; color: var(--muted); font-size: 11px; line-height: 1.8; text-align: center; }
.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.7; }

@media (max-width: 600px) {
  .login-shell { padding: 0 16px; }
  .page-header { min-height: 84px; gap: 10px; }
  .brand { gap: 9px; }
  .brand-symbol { width: 30px; height: 30px; border-radius: 8px; font-size: 20px; }
  .brand strong { font-size: 13px; }
  .brand small { max-width: 180px; font-size: 7px; letter-spacing: .08em; }
  .readonly-badge { padding: 5px 7px; font-size: 10px; }
  .login-main { justify-content: flex-start; padding: 32px 0; }
  .login-card { padding: 25px 20px; }
  h1 { font-size: 25px; }
  .eyebrow { font-size: 9px; letter-spacing: .08em; }
  .safety-note { margin-top: 22px; padding: 12px; }
  .page-footer { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}

@media (max-height: 700px) and (min-width: 601px) {
  .login-main { justify-content: flex-start; padding: 28px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
