:root {
  --bg: #0f1419;
  --panel: #1a222c;
  --line: #2a3544;
  --text: #e8eef6;
  --muted: #8b9bb0;
  --accent: #3d8bfd;
  --accent-hover: #5aa0ff;
  --danger: #f07178;
  --ok: #7fd99a;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "Noto Sans TC", sans-serif;
  font-size: 21px;
  background:
    radial-gradient(1200px 600px at 10% -10%, #1d3a66 0%, transparent 55%),
    radial-gradient(900px 500px at 110% 10%, #16324f 0%, transparent 50%),
    var(--bg);
  color: var(--text);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 24px;
  font-size: 35px;
  font-weight: 650;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 18px;
}

.field {
  margin-bottom: 16px;
}

input,
select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #12181f;
  color: var(--text);
  font-size: 20px;
}

select {
  cursor: pointer;
}

input:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--accent-hover);
}

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

.msg {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 19px;
}

.msg.error {
  background: rgba(240, 113, 120, 0.15);
  color: var(--danger);
}

.msg.ok {
  background: rgba(127, 217, 154, 0.12);
  color: var(--ok);
}

.hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

.hint a {
  color: var(--accent);
  text-decoration: none;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 18px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ghost {
  width: auto;
  height: 36px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
