:root {
  color-scheme: light;
  --ink: #172033;
  --ink-strong: #071b3d;
  --muted: #66758a;
  --soft: #eef2f6;
  --panel: #ffffff;
  --line: #d8dee8;
  --green: #23a47b;
  --blue: #1664e8;
  --blue-dark: #0c4cac;
  --red: #d64545;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(22, 100, 232, 0.12), transparent 26rem),
    radial-gradient(circle at bottom right, rgba(35, 164, 123, 0.12), transparent 24rem),
    var(--soft);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

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

.gateway-card {
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(29, 45, 68, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--green);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--ink-strong);
  line-height: 1.15;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.content {
  padding: 24px 0 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #345076;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.route-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  color: #31435c;
  font-size: 12px;
  font-weight: 800;
}

input {
  min-height: 44px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: 0;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 700;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 100, 232, 0.12);
}

input::placeholder {
  color: #8d99a8;
}

button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  cursor: pointer;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

button:hover:not(:disabled) {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.button-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: spin 0.75s linear infinite;
}

button.is-loading .button-spinner {
  display: inline-block;
}

.message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.message.success {
  color: var(--green);
}

.message.error {
  color: var(--red);
}

.note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(35, 164, 123, 0.14);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {
  .page {
    align-items: stretch;
    padding: 12px;
  }

  .gateway-card {
    align-self: center;
    padding: 22px;
  }
}
