.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(1200px 800px at 20% 10%, #eef2ff 0%, #ffffff 45%) no-repeat;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: #0f172a;
  box-sizing: border-box;
}

.page *,
.page *::before,
.page *::after {
  box-sizing: border-box;
}

.card {
  width: min(760px, 100%);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 22px;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.06),
    0 2px 10px rgba(15, 23, 42, 0.04);
}

.header h1 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.logo {
  display: block;
  width: min(260px, 65%);
  height: auto;
  margin-bottom: 14px;
}

.subtle {
  margin: 0;
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.45;
}

.section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.section h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.stack {
  display: grid;
  gap: 10px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(15, 23, 42, 0.55);
  font-size: 12px;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(15, 23, 42, 0.12);
}

.field {
  display: grid;
  gap: 6px;
}
.field span {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.7);
}
.field input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  outline: none;
  font-size: 14px;
}
.field input:focus {
  border-color: rgba(79, 70, 229, 0.65);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.btn {
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 0 14px;
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.btn--primary {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}
.btn--ghost {
  background: transparent;
}
.btn--secondary {
  background: rgba(79, 70, 229, 0.06);
  border-color: rgba(79, 70, 229, 0.22);
  color: #312e81;
}
.btn--secondary:hover {
  background: rgba(79, 70, 229, 0.1);
}
.btn--danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.hint {
  color: rgba(15, 23, 42, 0.6);
  font-size: 12px;
  line-height: 1.45;
}

.hidden {
  display: none !important;
}

.banner {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  font-size: 13px;
}
.banner--hidden {
  display: none;
}
.banner--success {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.08);
}
.banner--error {
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.08);
}

.userBox {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.02);
}
@media (min-width: 680px) {
  .userBox {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.userLabel {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.6);
  margin-bottom: 2px;
}
.userValue {
  font-size: 14px;
  font-weight: 650;
  word-break: break-word;
}
.userValue--mono {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-weight: 600;
}

.modalBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(3px);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 40px));
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 30px 80px rgba(2, 6, 23, 0.22),
    0 8px 25px rgba(2, 6, 23, 0.12);
  padding: 18px;
}
.modal h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.modalActions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.legalSection {
  padding-top: 14px;
}

.legalGrid {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

@media (min-width: 560px) {
  .legalGrid {
    grid-template-columns: 1fr 1fr;
  }
}

a.linkBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

