@font-face {
  font-family: Inter;
  src: url('/auth/portal-login-inter.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
}

:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #505050;
  --line: #ccc;
  --field: #767676;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}

.brand {
  border-bottom: 1px solid var(--ink);
  padding-block: 1.5rem;
}

.brand img {
  display: block;
  width: 10rem;
  height: auto;
}

.frame {
  width: min(44rem, calc(100% - 3rem));
  margin-inline: auto;
}

main {
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 1.04;
}

p {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
}
form {
  margin-top: 2.2rem;
}

.intro,
#receipt p {
  max-width: 34rem;
  margin-top: 1rem;
}
label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 650;
}

input:not([type='radio'], [type='checkbox']),
select,
textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--field);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.form-section,
.disclosure {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

legend {
  padding: 0;
  font-size: 1.12rem;
  font-weight: 720;
}

.routes {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.routes label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--field);
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
}

.routes label:has(:checked) {
  border-color: var(--ink);
  background: #f2f2f2;
}

.routes label:has(:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.routes input {
  margin: 0;
  accent-color: var(--ink);
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.optional {
  color: var(--muted);
  margin-left: 4px;
  font-size: 0.8rem;
  font-weight: 450;
}

.disclosure {
  margin: 22px 0 0;
  padding: 0 14px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f6f6;
}

.disclosure legend {
  font-size: 1rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--ink);
}

.hint {
  margin-top: 7px;
  font-size: 0.875rem;
}
.error {
  margin-top: 12px;
  border-left: 3px solid var(--ink);
  padding-left: 0.75rem;
  color: var(--ink);
  font-weight: 650;
}

button {
  min-height: 46px;
  margin-top: 16px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #333;
}
button:disabled {
  opacity: 0.72;
  cursor: wait;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

a {
  display: inline-block;
  margin-top: 20px;
  color: var(--ink);
}

@media (max-width: 34rem) {
  .frame {
    width: calc(100% - 2rem);
  }

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

  .brand img {
    width: 8rem;
  }
}
