:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #5f6f7d;
  --line: #d8e0e7;
  --paper: #fbfcfd;
  --accent: #176b87;
  --accent-soft: #dff3f7;
  --shadow: 0 24px 70px rgba(31, 41, 51, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(23, 107, 135, 0.14), rgba(223, 243, 247, 0.35)),
    var(--paper);
}

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

.card {
  width: min(100%, 520px);
  padding: clamp(28px, 6vw, 52px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 32px;
  max-width: 12ch;
  font-size: clamp(2.1rem, 8vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.gate {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.gate label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
button {
  min-height: 48px;
  border-radius: 8px;
  font: inherit;
}

input {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
}

button {
  border: 0;
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

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

input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.error {
  margin: 0;
  color: #a83232;
  font-weight: 700;
}

.contact-panel,
.identity,
.contact-row {
  display: grid;
}

.contact-panel {
  gap: 0;
}

.identity,
.contact-row {
  gap: 7px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-list {
  border-bottom: 1px solid var(--line);
}

.label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

strong,
.contact-row span:last-child {
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-row {
  color: inherit;
  text-decoration: none;
}

.contact-row:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 420px) {
  .passport {
    padding: 14px;
    align-items: stretch;
  }

  .card {
    align-self: center;
  }

  h1 {
    max-width: 11ch;
  }

  .password-row {
    grid-template-columns: 1fr;
  }
}
