/* Standalone styles for the PUBLIC sign-in page. Served without auth (see the
   /login.css route), so it must not depend on the auth-gated styles.css — keep
   it self-contained. The dashboard theme lives in styles.css. */
:root {
  --bg: #0f1419;
  --panel: #171d26;
  --panel-2: #1e2530;
  --border: #2a323d;
  --text: #d7dee8;
  --muted: #8b97a7;
  --accent: #4aa3ff;
  --red: #f85149;
  --yellow: #d29922;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px;
}
h1 { font-weight: 600; }
.muted { color: var(--muted); font-weight: 400; }

.login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px; position: relative; overflow: hidden;
  background: radial-gradient(1100px 560px at 50% -8%, rgba(74, 163, 255, .10), transparent 62%), var(--bg);
}
/* Faint beacon signal rings filling the backdrop, behind the card. */
.login-bg { position: absolute; inset: 0; pointer-events: none; }
.login-bg::before, .login-bg::after {
  content: ""; position: absolute; left: 50%; top: -130px;
  width: 540px; height: 540px; margin-left: -270px; border-radius: 50%;
  border: 1px solid rgba(74, 163, 255, .10);
}
.login-bg::after { width: 900px; height: 900px; margin-left: -450px; border-color: rgba(74, 163, 255, .055); }

.login-card {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 36px 32px 26px; width: 384px; max-width: 100%;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .65), 0 0 70px -34px rgba(74, 163, 255, .55);
}

.login-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.login-card h1 { margin: 0; font-size: 23px; letter-spacing: .2px; }
.login-sub { margin: 10px 0 0; text-align: center; font-size: 13px; line-height: 1.5; }

/* ── Beacon mark (animated signal) ── */
.beacon-mark { width: 58px; height: 58px; display: block; }
.bm-core { fill: var(--accent); }
.bm-glow { fill: var(--accent); opacity: .14; }
.bm-ring { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.bm-ring-1 { opacity: .5; }
.bm-ring-2 { opacity: .26; }
@media (prefers-reduced-motion: no-preference) {
  .bm-ring-1 { animation: bm-pulse 2.8s ease-out infinite; }
  .bm-ring-2 { animation: bm-pulse 2.8s ease-out infinite 1.4s; }
  .bm-glow { animation: bm-breathe 2.8s ease-in-out infinite; }
}
@keyframes bm-pulse { 0% { transform: scale(.5); opacity: .6; } 70% { opacity: .12; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes bm-breathe { 0%, 100% { opacity: .10; } 50% { opacity: .24; } }

.login-card form { display: flex; flex-direction: column; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.login-card label { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.login-card input {
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px;
  padding: 11px 12px; color: var(--text); font-size: 14px; width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
.login-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74, 163, 255, .18); }
.login-card input::placeholder { color: #545d6b; letter-spacing: .1em; }

.pw-wrap { position: relative; display: flex; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer;
  padding: 6px; border-radius: 7px; display: flex; align-items: center;
}
.pw-toggle:hover { color: var(--text); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pw-toggle svg { width: 18px; height: 18px; }
.pw-toggle .icon-off { display: none; }
.pw-toggle.revealed .icon-on { display: none; }
.pw-toggle.revealed .icon-off { display: block; }

.caps-hint { margin: 9px 0 0; font-size: 12px; color: var(--yellow); display: flex; align-items: center; gap: 6px; }
.caps-glyph { font-size: 14px; line-height: 1; }

.login-submit {
  margin-top: 4px; background: var(--accent); color: #00121f; border: none;
  border-radius: 9px; padding: 12px; font-weight: 600; cursor: pointer; font-size: 14px;
  transition: filter .12s, transform .05s;
}
.login-submit:hover { filter: brightness(1.08); }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled { opacity: .65; cursor: default; }
.login-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.error {
  color: #ff8c84; font-size: 13px; margin: 0 0 15px; line-height: 1.4;
  background: rgba(248, 81, 73, .10); border: 1px solid rgba(248, 81, 73, .32);
  border-radius: 9px; padding: 10px 12px; display: flex; align-items: center; gap: 9px;
}
.error svg { width: 17px; height: 17px; flex: 0 0 auto; }

.login-foot {
  margin: 22px 0 0; text-align: center; font-size: 11.5px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.login-foot svg { width: 13px; height: 13px; opacity: .85; flex: 0 0 auto; }
