:root {
  color-scheme: light;
  --bg: #06131f;
  --panel: rgba(10, 23, 36, 0.84);
  --panel-border: rgba(150, 214, 255, 0.18);
  --primary: #56d3ff;
  --success: #38d39f;
  --warning: #ffb84d;
  --danger: #ff6f91;
  --text: #eef7ff;
  --muted: #9fb7cb;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(35, 135, 255, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(86, 211, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #04101a, #0b1827 48%, #07131e);
  color: var(--text);
}

.page-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero-card,
.status-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 40px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 211, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(86, 211, 255, 0.12);
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
}

.hero-text {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.signin-form {
  margin-top: 34px;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
}

input,
button {
  border: none;
  outline: none;
  border-radius: 18px;
  font-size: 18px;
}

input {
  width: 100%;
  padding: 18px 20px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

input:focus {
  border-color: rgba(86, 211, 255, 0.6);
  transform: translateY(-1px);
}

button {
  cursor: pointer;
  padding: 18px 20px;
  color: #04131f;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #8be8ff);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(86, 211, 255, 0.28);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.field-tip {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-panel {
  margin-top: 28px;
  padding: 30px;
}

.hidden {
  display: none;
}

.status-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.status-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-header h2 {
  margin: 8px 0 0;
  font-size: 28px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}

.status-message {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.metric-card,
.result-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}

.metric-card {
  padding: 20px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
}

.result-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.result-card {
  padding: 20px;
}

.result-card h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.result-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.result-list li + li {
  margin-top: 8px;
}

.trace-output {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d6ebff;
  line-height: 1.7;
  font-size: 13px;
}

.status-success .status-badge {
  background: rgba(56, 211, 159, 0.16);
  color: var(--success);
}

.status-warning .status-badge {
  background: rgba(255, 184, 77, 0.16);
  color: var(--warning);
}

.status-danger .status-badge {
  background: rgba(255, 111, 145, 0.16);
  color: var(--danger);
}

@media (max-width: 800px) {
  .page-shell {
    width: min(100% - 20px, 1100px);
    padding-top: 20px;
  }

  .hero-card,
  .status-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .field-row,
  .metric-grid,
  .result-columns {
    grid-template-columns: 1fr;
  }
}

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