.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 100px);
  padding: 24px 0 40px;
}
.auth-card {
  width: min(100%, 480px);
  min-width: 0;
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 28px;
}
.plans .auth-card h1 {
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.15;
  letter-spacing: -.04em;
  text-align: center;
  text-wrap: balance;
}
.auth-card > p, .auth-card > a { text-align: center; }
.auth-card > a { display: block; }
.auth-card form, .auth-card label { display: grid; gap: 7px; min-width: 0; }
.auth-card form { gap: 14px; margin: 22px 0; }
.auth-card label { font-size: 14px; font-weight: 500; }
.auth-card input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.auth-card button { width: 100%; padding: 13px 16px; font: inherit; color: var(--ink); cursor: pointer; }
.auth-card .solid { color: #172345; }
.auth-card a { color: var(--accent); }
.auth-card small, .auth-card p { color: var(--muted); }
.auth-card form > small { margin-top: -8px; font-size: 12px; line-height: 1.4; }
.auth-card input[name=code] { font-size: 26px; letter-spacing: .3em; text-align: center; }
.auth-card [hidden] { display: none!important; }
.auth-card button:disabled { opacity: .55; cursor: wait; }
#auth-status:empty, #security-status:empty { display: none; }

.role-choice { border: 0; padding: 0; margin: 5px 0 0; min-width: 0; }
.role-choice legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 500; }
.role-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth-card .role-options label { position: relative; display: block; cursor: pointer; }
.auth-card .role-options input {
  position: absolute; width: 1px; height: 1px; min-height: 0;
  padding: 0; margin: 0; opacity: 0;
}
.role-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; min-height: 138px; padding: 18px 10px;
  border: 1px solid #ffffff14; border-radius: 20px; background: #26272e;
  color: var(--muted); text-align: center; font-size: 14px; line-height: 1.45;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.role-symbol { font-size: 28px; line-height: 1; }
.role-mark {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  color: #172345; font-size: 12px; opacity: 0; transform: scale(.7);
  transition: opacity 180ms ease, transform 220ms ease;
}
.role-options input:checked + .role-card { background: #b8caff16; border-color: #b8caff80; color: var(--ink); }
.role-options input:checked + .role-card .role-mark { opacity: 1; transform: scale(1); }
.role-options input:focus-visible + .role-card { outline: 3px solid var(--accent); outline-offset: 3px; }
@media(hover: hover) { .role-options label:hover .role-card { border-color: #b8caff60; } }
@media(prefers-reduced-motion: reduce) { .role-card, .role-mark { transition: none; } }
@media(max-width: 480px) {
  .plans header { padding-inline: 14px; }
  .plans header > a:last-child { font-size: 13px; }
}
