:root {
  --bg: #07111b;
  --panel: rgba(15, 28, 42, 0.92);
  --line: rgba(102, 175, 205, 0.22);
  --text: #e9f3fa;
  --muted: #8ea8bc;
  --accent: #70f0ff;
  --success: #7ff2b3;
  --warn: #ffb85c;
  --danger: #ff7f96;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body.testing-page {
  font-family: Bahnschrift, "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(32, 126, 163, 0.24), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(255, 184, 92, 0.12), transparent 16%),
    linear-gradient(135deg, #071019 0%, #0b1622 48%, #08111c 100%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.testing-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 10px;
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.24em;
  font-size: 12px;
  color: var(--accent);
}

.testing-login,
.topbar,
.panel,
.status-card {
  padding: 24px;
}

.testing-login {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
  gap: 28px;
}

.testing-login h1,
.topbar h2,
.panel h3 {
  margin: 0;
}

.login-copy p:last-child,
.muted,
.field span,
.message-strip,
.status-label,
.status-hint {
  color: var(--muted);
}

.login-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(112, 240, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(5, 14, 24, 0.72);
  color: var(--text);
}

.field input:focus {
  outline: none;
  border-color: rgba(112, 240, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(112, 240, 255, 0.12);
}

.login-actions,
.top-actions,
.actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 20, 32, 0.72);
  color: var(--text);
  cursor: pointer;
}

.action.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, #56c8ff 100%);
  color: #06111c;
  font-weight: 700;
}

.action.secondary {
  background: rgba(112, 240, 255, 0.08);
  border-color: rgba(112, 240, 255, 0.3);
}

.action.subtle { background: rgba(255, 255, 255, 0.03); }
.action.ghost { border-color: rgba(255, 184, 92, 0.28); }

.message-strip { min-height: 24px; }
.message-strip[data-state="error"] { color: var(--danger); }

.dashboard { display: grid; gap: 24px; }

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.status-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.status-value {
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.4rem;
  color: var(--accent);
}

.status-value.pass { color: var(--success); }
.status-value.wait { color: var(--warn); }

.status-hint {
  margin: 14px 0 0;
  line-height: 1.7;
}

.hide { display: none !important; }

@media (max-width: 960px) {
  .testing-login,
  .topbar {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 720px) {
  .testing-shell { padding: 18px 16px 28px; }
  .action { width: 100%; }
}