/* Authentication and access-context screens. */

.auth-shell {
  display: grid;
  min-height: calc(100svh - 68px);
  place-items: center;
  padding: 56px 18px 72px;
}

.auth-panel {
  width: min(520px, 100%);
  padding: 38px;
  border: 2px solid var(--ink);
  border-radius: 17px 13px 18px 14px;
  background: var(--surface);
  box-shadow: 8px 9px 0 var(--ink);
}

.auth-panel h1 {
  max-width: 450px;
  margin: 0 0 12px;
  font-size: clamp(36px, 7vw, 49px);
  line-height: 1;
}

.auth-intro {
  margin-bottom: 0;
  color: var(--muted-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-intro strong {
  color: var(--ink);
}

.auth-form {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.code-input {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.22em;
}

.resend-copy {
  margin: 0;
  color: var(--muted-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-submit {
  width: 100%;
  min-height: 50px;
}

.resend-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.resend-copy {
  max-width: 245px;
}

.resend-button {
  min-height: 38px;
  white-space: nowrap;
}

.verified-email {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 11px 13px;
  border: 1.5px dashed var(--ink);
  border-radius: 9px;
  background: var(--surface-sunk);
}

.verified-email span {
  color: var(--muted-ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.verified-email strong {
  font-size: 14px;
}

.context-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.context-choice {
  display: grid;
  width: 100%;
  min-height: 86px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 2px solid var(--ink);
  border-radius: 11px;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--ink);
  text-align: left;
  transition: background-color 150ms ease, box-shadow 150ms ease, translate 150ms ease;
}

.context-choice:hover {
  background: var(--interactive-soft);
  box-shadow: 5px 5px 0 var(--ink);
  translate: -1px -1px;
}

.context-choice.is-current {
  background: var(--interactive-soft);
  box-shadow: 4px 4px 0 var(--ink);
}

.context-choice:active {
  box-shadow: none;
  translate: 3px 3px;
}

.context-avatar {
  width: 44px;
}

.context-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.context-copy > strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.context-role {
  width: fit-content;
  padding: 2px 7px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--success-soft);
  font-size: 10px;
  font-weight: 950;
}

.context-labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.context-current {
  width: fit-content;
  padding: 2px 7px;
  border: 1.5px solid var(--primary-dark);
  border-radius: 999px;
  color: white;
  background: var(--primary);
  font-size: 10px;
  font-weight: 950;
}

.context-copy small {
  overflow-wrap: anywhere;
  color: var(--muted-ink);
  font-size: 12px;
  font-weight: 700;
}

.context-arrow {
  color: var(--primary-dark);
  font-size: 21px;
  font-weight: 950;
}

.auth-empty-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 28px;
  padding: 20px;
  border: 1.5px dashed var(--ink);
  border-radius: 11px;
  background: var(--surface-sunk);
}

.auth-empty-state p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-secondary-action {
  margin: 24px 0 0;
  color: var(--muted-ink);
  font-size: 13px;
  text-align: center;
}
