/* Centred, chrome-less screens: login, sign-up and the password flows. */
.auth {
  min-height: 100vh;
  background: var(--page);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth__inner {
  width: 100%;
  max-width: 440px;
}

.auth__header {
  text-align: center;
  margin-bottom: 26px;
}

.auth__logo {
  height: 52px;
  width: auto;
  display: block;
  margin: 0 auto 14px;
}

.auth__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.auth__subtitle {
  font-size: 13.5px;
  color: var(--slate);
  margin: 8px 0 0;
}

.auth__footer {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--slate);
}

.auth__wallet-note {
  display: flex;
  justify-content: center;
  margin-top: 9px;
}

/* Sign-up is a long scrolling form, not a centred card. */
.signup {
  min-height: 100vh;
  background: var(--page);
  overflow-y: auto;
  padding: 36px 24px 60px;
}

.signup__inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.signup__title {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.signup__intro {
  font-size: 14px;
  color: var(--slate);
  margin: 8px 0 0;
  max-width: 640px;
}

.signup__header {
  margin-bottom: 26px;
}

.signup .card {
  margin-bottom: 20px;
}

.card__hint {
  font-size: 12.5px;
  color: var(--slate-light);
  margin: 0 0 16px;
}

/* Role selection cards */
.role-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 16px 10px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  display: block;
}

.role-card:hover {
  border-color: var(--navy-500);
}

.role-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-card__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.3;
}

.role-card__icon {
  width: 24px;
  height: 24px;
  color: var(--navy-700);
}

.role-card:has(input:checked) {
  border-color: var(--navy-700);
  border-width: 2px;
  background: var(--info-bg);
}

.role-card:has(input:focus-visible) {
  outline: 2px solid var(--navy-500);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .role-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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