:root {
  --bg: #071321;
  --card: rgba(255, 255, 255, 0.94);
  --text: #132034;
  --muted: #607089;
  --accent: #0b84ff;
  --accent-2: #075bb2;
  --wing: #30d5ff;
  --border: rgba(145, 171, 209, 0.34);
  --ok: #0f8a4c;
  --warn: #d26900;
  --err: #b93434;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(48, 213, 255, 0.28), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(11, 132, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #06111f 0%, #0a1c34 48%, #eaf4ff 49%, #f6f9ff 100%);
  color: var(--text);
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px;
}

.standby-banner {
  background: #fff7e8;
  border: 1px solid #f1c56f;
  color: #7a4a00;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(80, 48, 0, 0.06);
}

.incident-banner {
  display: grid;
  gap: 4px;
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 14px;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(80, 20, 32, 0.14);
}

.incident-banner span,
.incident-banner small {
  font-weight: 600;
}

.incident-banner small {
  opacity: 0.78;
}

.incident-banner.info {
  background: #edf4ff;
  border: 1px solid #b9d3ff;
  color: #2557a6;
}

.incident-banner.error {
  background: #fff0f3;
  border: 1px solid #ff9eb8;
  color: #8f1534;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 22px 70px rgba(3, 16, 36, 0.16);
  backdrop-filter: blur(14px);
}

h1, h2 { margin-top: 0; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.92rem; }
.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.form { display: grid; gap: 10px; margin-top: 12px; }
.inline-form { display: inline; }
label { font-weight: 600; }
input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.84);
}

input:focus {
  border-color: var(--wing);
  box-shadow: 0 0 0 4px rgba(48, 213, 255, 0.18);
  outline: none;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.checkbox-row input {
  width: auto;
  min-width: 18px;
  height: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--wing));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(11, 132, 255, 0.24);
}
.btn:hover { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions-inline { display: flex; gap: 14px; margin-top: 10px; }
.small-link { color: var(--accent); text-decoration: none; }
.auth-switch { display: flex; gap: 10px; margin: 12px 0 8px; }
.auth-tab { min-width: 140px; }
.auth-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.role-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.role-choice .btn {
  min-height: 48px;
}

.role-choice .is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0;
  font-weight: 600;
}
.alert.info { background: #edf4ff; color: #2557a6; }
.alert.success { background: #e8f8ef; color: var(--ok); }
.alert.error { background: #ffeef0; color: var(--err); }

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

ol { margin-top: 8px; }
li { margin-bottom: 8px; }
.compact-list { margin: 6px 0 0; padding-left: 18px; }
.compact-list li { margin-bottom: 4px; }

.auth-card {
  max-width: 520px;
  margin: 48px auto 14px;
}

.brand-auth {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.brand-auth::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 213, 255, 0.34), transparent 68%);
  pointer-events: none;
}

.hero-card {
  border-color: rgba(48, 213, 255, 0.32);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  margin-bottom: 0;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-card b {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
th, td {
  border-bottom: 1px solid var(--border);
  padding: 8px;
  text-align: left;
}

@media (max-width: 740px) {
  .grid { grid-template-columns: 1fr; }
  .role-choice { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .top-row { flex-direction: column; align-items: flex-start; }
}
