.auth-access-shell .auth-form-panel { padding-block: clamp(22px, 4vw, 52px); }

.auth-access-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius-xl);
  background: var(--auth-surface);
  box-shadow: var(--auth-shadow);
}

.auth-access-header { padding: 28px 30px 16px; text-align: center; }
.auth-access-header span { color: var(--auth-primary); font-size: 11px; font-weight: 800; }
.auth-access-header h1 { margin: 7px 0 0; color: var(--auth-navy); font-size: 27px; line-height: 1.3; }

.auth-access-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0 30px 18px;
  list-style: none;
}

.auth-access-steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--auth-line);
  border-radius: 11px;
  color: var(--auth-muted);
  background: var(--auth-page);
  font-size: 10px;
  font-weight: 800;
}

.auth-access-steps li.is-active { border-color: color-mix(in srgb, var(--auth-primary) 45%, var(--auth-line)); color: var(--auth-primary); background: var(--auth-primary-soft); }
.auth-access-steps b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; background: var(--auth-line); font-size: 10px; }
.auth-access-steps li.is-active b { color: #fff; background: var(--auth-primary); }

.auth-access-alert { margin: 0 30px 14px; padding: 10px 12px; border: 1px solid #f3c4bc; border-radius: 11px; color: var(--auth-danger); background: var(--auth-danger-soft); font-size: 11px; font-weight: 700; line-height: 1.6; }
.auth-access-alert.is-success { border-color: #a7dfd3; color: var(--auth-success); background: var(--auth-success-soft); }

.auth-access-view { padding: 8px 30px 28px; }
.auth-access-field { display: grid; gap: 8px; color: var(--auth-ink); font-size: 12px; font-weight: 800; }
.auth-access-input { display: flex; align-items: center; min-height: 56px; border: 1px solid var(--auth-line); border-radius: var(--auth-radius-md); background: var(--auth-surface); transition: border-color .16s ease, box-shadow .16s ease; }
.auth-access-input:focus-within { border-color: var(--auth-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-primary) 13%, transparent); }
.auth-access-input svg { flex: 0 0 auto; width: 20px; height: 20px; margin-inline: 14px 4px; color: var(--auth-primary); }
.auth-access-input input { width: 100%; min-width: 0; height: 54px; padding: 0 12px; border: 0; outline: 0; color: var(--auth-ink); background: transparent; font-size: 14px; font-weight: 700; }
.auth-access-code input { text-align: center; font-size: 22px; letter-spacing: .34em; }

.auth-access-primary,
.auth-access-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin-top: 17px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.auth-access-primary { width: 100%; border: 0; color: #fff; background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-deep)); box-shadow: 0 12px 24px color-mix(in srgb, var(--auth-primary) 22%, transparent); }
.auth-access-primary svg { width: 18px; height: 18px; transform: scaleX(-1); }
.auth-access-secondary { min-width: 150px; padding-inline: 18px; border: 1px solid var(--auth-line); color: var(--auth-primary); background: var(--auth-surface); font-size: 11px; }
.auth-access-primary:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.auth-access-card.is-busy button { pointer-events: none; }

.auth-access-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.auth-access-verified-contact { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 11px; margin-bottom: 17px; padding: 12px; border: 1px solid #a7dfd3; border-radius: 13px; color: var(--auth-success); background: var(--auth-success-soft); }
.auth-access-verified-contact svg { width: 26px; height: 26px; }
.auth-access-verified-contact small,
.auth-access-verified-contact strong { display: block; }
.auth-access-verified-contact small { margin-bottom: 3px; font-size: 9px; }
.auth-access-verified-contact strong { font-size: 11px; }
.auth-access-resend { display: none; }

@media (min-width: 721px) {
  .auth-access-verified-contact { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .auth-access-resend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 4px 9px;
    border: 1px solid color-mix(in srgb, var(--auth-success) 28%, #fff);
    border-radius: 9px;
    color: var(--auth-success);
    background: color-mix(in srgb, var(--auth-success-soft) 55%, #fff);
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
  }
  .auth-access-resend > svg { width: 14px; height: 14px; }
  .auth-access-resend:hover,
  .auth-access-resend:focus-visible {
    border-color: color-mix(in srgb, var(--auth-success) 50%, #fff);
    background: #fff;
    outline: 2px solid color-mix(in srgb, var(--auth-success) 18%, transparent);
    outline-offset: 2px;
  }
}

.auth-access-account-list { display: grid; gap: 10px; }
.auth-access-account {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  color: var(--auth-ink);
  background: var(--auth-surface);
  cursor: pointer;
  text-align: start;
}
.auth-access-account:hover,
.auth-access-account:focus-visible { border-color: var(--auth-primary); outline: 0; box-shadow: 0 0 0 3px var(--auth-primary-soft); }
.auth-access-account > svg { width: 42px; height: 42px; padding: 10px; border-radius: 12px; color: var(--auth-primary); background: var(--auth-primary-soft); }
.auth-access-account strong,
.auth-access-account small { display: block; }
.auth-access-account strong { margin-bottom: 4px; font-size: 13px; }
.auth-access-account small { color: var(--auth-muted); font-size: 10px; }
.auth-access-account > b { color: var(--auth-primary); font-size: 11px; }

.auth-access-footer { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 15px 24px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); background: color-mix(in srgb, var(--auth-page) 62%, var(--auth-surface)); font-size: 11px; font-weight: 700; }
.auth-access-footer a { color: var(--auth-primary); font-weight: 900; text-decoration: none; }

html[data-my-theme="dark"] .auth-access-card,
html[data-my-theme="dark"] .auth-access-input,
html[data-my-theme="dark"] .auth-access-account,
html[data-my-theme="dark"] .auth-access-secondary { background: var(--auth-surface); }

@media (max-width: 560px) {
  .auth-access-header { padding: 22px 20px 14px; }
  .auth-access-header h1 { font-size: 23px; }
  .auth-access-steps { padding-inline: 20px; }
  .auth-access-steps span { display: none; }
  .auth-access-view { padding-inline: 20px; }
  .auth-access-actions { grid-template-columns: 1fr; }
  .auth-access-secondary { width: 100%; }
}
