/* Sign-in page — same palette as the app (dark #0D1017, signal red #EF4444). */
:root {
  --bg: #0D1017;
  --card: #121620;
  --field: #0E121A;
  --line: #262C3A;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --faint: #64748B;
  --red: #EF4444;
  --red-hover: #F05252;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; overflow-x: hidden; position: relative;
}
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.glow-a { top: 12%; left: -140px; background: rgba(220, 38, 38, 0.12); }
.glow-b { bottom: 8%; right: -140px; background: rgba(51, 65, 85, 0.25); }

.wrap { width: 100%; max-width: 420px; position: relative; z-index: 1; animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.card {
  background: var(--card); border: 2px solid rgba(239, 68, 68, 0.28); border-radius: 26px; padding: 34px 30px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 26px; }
.logo { height: 40px; margin-bottom: 14px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
h1 { margin: 0; font-size: 21px; font-weight: 750; letter-spacing: -0.02em; }
.tag { margin: 6px 0 0; color: var(--red); font: 700 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }

.field { display: block; margin-bottom: 16px; }
.label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: #CBD5E1; margin-bottom: 7px; }
.label svg { color: var(--red); width: 14px; height: 14px; }
input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--field);
  color: var(--text); font: 500 15px/1 inherit; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--faint); }
input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }
.pw { position: relative; display: block; }
.pw input { padding-right: 48px; }
.eye {
  position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent;
  color: var(--faint); display: grid; place-items: center; cursor: pointer;
}
.eye:hover, .eye.on { color: var(--text); background: rgba(148, 163, 184, .1); }
.eye svg { width: 18px; height: 18px; }

.error {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px; margin: 2px 0 14px; border-radius: 13px;
  background: rgba(76, 5, 25, .7); border: 1px solid #9F1239; color: #FDA4AF; font-size: 13px; font-weight: 550;
}
.error[hidden] { display: none; }
.error svg { color: #FB7185; }

.submit {
  width: 100%; height: 50px; border: 0; border-radius: 14px; background: var(--red); color: #fff; cursor: pointer;
  font: 700 14.5px/1 inherit; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 10px 26px rgba(239, 68, 68, .28); transition: background .15s, transform .1s, opacity .15s;
}
.submit:hover { background: var(--red-hover); }
.submit:active { transform: scale(.99); }
.submit:disabled { opacity: .6; cursor: default; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.roles { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 12px; color: var(--muted); }
.roles span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.red { background: var(--red); }
.dot.blue { background: #3B82F6; }
.foot { text-align: center; color: var(--faint); font-size: 12.5px; margin: 18px 0 0; }

@media (max-width: 420px) { .card { padding: 28px 20px 22px; border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
