:root {
  font-family: Inter, system-ui, "Noto Sans TC", sans-serif;
  color: #edf4ff;
  background: #0b1119;
  --line: #2a3a4e;
  --muted: #9fb0c5;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 50% -20%, #19304a 0, #0b1119 45%);
}

.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 28px 18px 60px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 8px 28px;
}

.brand-mark,
.step-title > span {
  display: grid;
  place-items: center;
  border: 1px solid #47729e;
  border-radius: 16px;
  background: linear-gradient(135deg, #2b5d93, #435b7b);
  font-weight: 800;
}

.brand-mark {
  width: 58px;
  height: 58px;
  font-size: 20px;
}

.eyebrow,
.step-title small {
  color: #79b7f6;
  font-weight: 800;
  letter-spacing: .15em;
}

.hero h1 {
  margin: 4px 0;
  font-size: clamp(30px, 5vw, 52px);
}

.hero p {
  margin: 0;
  color: #e4b39b;
}

.card {
  margin: 16px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18, 27, 39, .96);
  box-shadow: 0 18px 50px #0006;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.step-title > span {
  width: 48px;
  height: 48px;
  color: #a9d7ff;
}

.step-title h2 {
  margin: 3px 0;
  font-size: 24px;
}

.grid {
  display: grid;
  gap: 14px;
}

.one-action {
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 260px);
}

label {
  color: var(--muted);
  font-weight: 700;
}

input,
button {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #394c63;
  border-radius: 12px;
  font: inherit;
}

input {
  margin-top: 7px;
  background: #0e1722;
  color: #edf4ff;
}

button {
  background: #416f9f;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.12);
}

button:disabled {
  opacity: .55;
  cursor: wait;
}

.status {
  min-height: 1.4em;
  color: #d5dfec;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 13px;
}

.remember-row input {
  width: auto;
  margin: 0;
}

.license-details {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #3b6f56;
  border-radius: 16px;
  background: #10281e;
}

.license-details h3 {
  margin: 0 0 14px;
}

.license-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.license-detail-grid > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #315743;
  border-radius: 12px;
  background: #0c1e17;
}

.license-detail-grid span {
  color: var(--muted);
  font-size: 13px;
}

.license-detail-grid strong {
  overflow-wrap: anywhere;
}

.hidden {
  display: none !important;
}

.system-notice {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid #3f6f9d;
  border-radius: 14px;
  background: #24405c;
  color: #dceeff;
  font-weight: 700;
  white-space: pre-line;
}

.system-notice.maintenance {
  border-color: #9a6d2b;
  background: #5a3d1d;
  color: #ffe2a8;
}

.toast {
  position: fixed;
  z-index: 20;
  top: 50%;
  left: 50%;
  padding: 16px 22px;
  border-radius: 14px;
  box-shadow: 0 18px 60px #000a;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.toast.good {
  background: #2d7452;
}

.toast.bad {
  background: #963f36;
}

@media (max-width: 680px) {
  .wrap {
    padding: 12px;
  }

  .card {
    padding: 17px;
  }

  .hero {
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 31px;
  }

  .one-action {
    grid-template-columns: 1fr;
  }

  .license-detail-grid {
    grid-template-columns: 1fr;
  }

  .step-title h2 {
    font-size: 21px;
  }
}
