/* EE4E public auth and onboarding skin.
   Visual source: temp-login design kit. Implementation source: live auth routes. */

:root {
  --auth-bg: #faf7f2;
  --auth-surface: #ffffff;
  --auth-warm-50: #fdf9f4;
  --auth-warm-100: #f5efe4;
  --auth-warm-200: #e8ddd0;
  --auth-gray-300: #c4b8a8;
  --auth-gray-500: #8a7f72;
  --auth-gray-600: #5d544a;
  --auth-gray-800: #2e2a24;
  --auth-gray-900: #1c1814;
  --auth-indigo: #5548c8;
  --auth-indigo-dark: #4439a8;
  --auth-indigo-soft: #f0eeff;
  --auth-amber: #d4820a;
  --auth-teal: #0a9080;
  --auth-coral: #c85535;
  --auth-red: #c83535;
  --auth-green: #2a9e5c;
  --auth-shadow-card: 0 2px 16px rgba(60, 40, 20, 0.07), 0 1px 4px rgba(60, 40, 20, 0.04);
  --auth-shadow-modal: 0 24px 80px rgba(60, 40, 20, 0.12), 0 4px 16px rgba(60, 40, 20, 0.06);
}

.public-auth-page {
  min-height: 100svh;
  margin: 0;
  background: var(--auth-bg);
  color: var(--auth-gray-900);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-y: auto;
}

.public-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(212, 130, 10, 0.07), rgba(85, 72, 200, 0.05) 45%, transparent 70%);
}

.auth-public-nav {
  position: relative;
  z-index: 2;
  min-height: 84px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--auth-warm-200);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-gray-900);
  text-decoration: none;
  font-family: Sora, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.auth-logo__letter--amber { color: var(--auth-amber); font-weight: 800; }
.auth-logo__letter--teal { color: var(--auth-teal); font-weight: 800; }
.auth-logo__letter--coral { color: var(--auth-coral); font-weight: 800; }
.auth-logo__number { font-weight: 800; }

.auth-back-link,
.auth-text-link {
  border: 0;
  background: transparent;
  color: var(--auth-gray-600);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.auth-back-link {
  padding: 7px 14px;
  border-radius: 8px;
}

.auth-back-link:hover,
.auth-text-link:hover {
  color: var(--auth-gray-900);
  background: var(--auth-warm-100);
}

.auth-shell,
.page-container.public-auth-shell {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 85px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-wrapper {
  width: 100%;
  max-width: 500px;
}

.auth-wrapper--narrow { max-width: 440px; }
.auth-wrapper--wide { max-width: 760px; }
.auth-wrapper--invite { max-width: 660px; }

.auth-card,
.card.card--large.auth-card {
  width: 100%;
  padding: 40px;
  border: 1.5px solid var(--auth-warm-200);
  border-radius: 24px;
  background: var(--auth-surface);
  box-shadow: var(--auth-shadow-modal);
}

.auth-card__header,
.card__header {
  margin-bottom: 28px;
  text-align: center;
}

.auth-card__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--auth-indigo-soft);
  color: var(--auth-indigo);
  font-size: 18px;
}

.auth-card__title,
.card__title {
  margin: 0;
  color: var(--auth-gray-900);
  font-family: Sora, system-ui, sans-serif;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-card__subtitle,
.card__subtitle {
  max-width: 560px;
  margin: 10px auto 0;
  color: var(--auth-gray-600);
  font-size: 15px;
  line-height: 1.55;
}

.auth-card__content,
.card__content {
  color: var(--auth-gray-800);
}

.login-page .auth-shell {
  align-items: flex-start;
  min-height: auto;
  padding-top: clamp(24px, 5vh, 44px);
  padding-bottom: 32px;
}

.login-page .auth-card {
  padding: 32px;
  border-radius: 22px;
}

.login-page .auth-card__header {
  margin-bottom: 22px;
}

.login-page .auth-card__eyebrow {
  min-width: 34px;
  height: 34px;
  margin-bottom: 12px;
  font-size: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-page .auth-form {
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 16px;
}

.login-page .form-field {
  margin-bottom: 10px;
}

.form-field__label {
  color: var(--auth-gray-800);
  font-size: 13px;
  font-weight: 700;
}

.public-auth-page .form-field__required {
  display: none;
}

.public-auth-page .form-field--required .form-field__label::after {
  content: " *";
  color: var(--auth-red);
}

.form-field__input-group,
.auth-input-wrap {
  position: relative;
}

.form-field__input,
.auth-input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--auth-warm-200);
  border-radius: 12px;
  background: var(--auth-warm-50);
  color: var(--auth-gray-900);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.public-auth-page .form-field__input::placeholder,
.public-auth-page .auth-input::placeholder,
.public-auth-page .form-field textarea::placeholder {
  color: var(--auth-gray-500);
  opacity: 0.85;
}

.public-auth-page .form-field__input:invalid,
.public-auth-page .auth-input:invalid,
.public-auth-page .form-field select:invalid,
.public-auth-page .form-field textarea:invalid {
  border-color: var(--auth-warm-200);
}

.form-field__input--with-icon-left { padding-left: 44px; }
.form-field__input--with-icon-right { padding-right: 72px; }

.form-field__input:focus,
.auth-input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--auth-indigo);
  background: var(--auth-surface);
  box-shadow: 0 0 0 4px rgba(85, 72, 200, 0.12);
}

.form-field__input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-gray-500);
}

.form-field__input-icon--left { left: 14px; }

.auth-password-toggle,
.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  min-width: 48px;
  width: auto;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--auth-gray-500);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.auth-password-toggle:hover,
.password-toggle:hover {
  color: var(--auth-gray-900);
  background: var(--auth-warm-100);
}

.btn,
.btn-primary,
.btn-secondary,
.btn--primary,
.btn--secondary,
.btn--success,
.btn--link,
.btn-accept,
.btn-decline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
}

.btn--block,
.auth-submit {
  width: 100%;
}

.btn-primary,
.btn--primary,
.btn--success,
.btn-accept,
.auth-submit {
  background: var(--auth-indigo);
  color: #fff;
  box-shadow: 0 10px 24px rgba(85, 72, 200, 0.20);
}

.btn-primary:hover,
.btn--primary:hover,
.btn--success:hover,
.btn-accept:hover,
.auth-submit:hover {
  background: var(--auth-indigo-dark);
  transform: translateY(-1px);
}

.btn-secondary,
.btn--secondary {
  background: var(--auth-warm-50);
  border-color: var(--auth-warm-200);
  color: var(--auth-gray-800);
}

.btn-decline {
  background: #fff4f1;
  border-color: #f0c5b8;
  color: var(--auth-coral);
}

.btn--link,
.auth-link-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--auth-indigo);
}

.auth-footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--auth-warm-200);
  text-align: center;
}

.login-page .auth-footer {
  margin-top: 18px;
  padding-top: 16px;
}

.auth-footer__links,
.auth-footer__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-footer__divider {
  height: 1px;
  margin: 16px 0;
  background: var(--auth-warm-200);
}

.text-secondary,
.form-field__help {
  color: var(--auth-gray-600);
}

.auth-alert,
.alert {
  margin-bottom: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--auth-warm-200);
  background: var(--auth-warm-50);
  color: var(--auth-gray-800);
  font-size: 14px;
  line-height: 1.45;
}

.auth-alert--error,
.alert--danger,
.alert--error {
  border-color: #efc1bf;
  background: #fff4f1;
  color: var(--auth-red);
}

.auth-alert--success,
.alert--success {
  border-color: #a7dac7;
  background: #edfaf7;
  color: #116b45;
}

.auth-alert--warning,
.alert--warning {
  border-color: #f1d9a7;
  background: #fff8ec;
  color: #805308;
}

.auth-alert__meta {
  display: block;
  margin-top: 8px;
  color: currentColor;
  font-size: 13px;
  font-weight: 600;
}

.login-page .auth-alert,
.login-page .alert {
  margin-bottom: 14px;
  padding: 12px 14px;
}

.progress-container,
.auth-progress {
  margin: 0 0 28px;
}

.progress-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.progress-steps::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--auth-warm-200);
}

.progress-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--auth-gray-500);
  text-align: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.progress-step-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--auth-warm-200);
  border-radius: 999px;
  background: var(--auth-surface);
  font-weight: 800;
}

.progress-step.active,
.progress-step.completed {
  color: var(--auth-indigo);
}

.progress-step.active .progress-step-number,
.progress-step.completed .progress-step-number {
  border-color: var(--auth-indigo);
  background: var(--auth-indigo);
  color: #fff;
}

.progress-step-label {
  max-width: 96px;
  font-size: 12px;
  font-weight: 700;
}

.form-steps-container {
  min-height: 220px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-section {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--auth-warm-200);
  border-radius: 18px;
  background: var(--auth-warm-50);
}

.form-section h3,
.form-section-title {
  margin: 0 0 16px;
  color: var(--auth-gray-900);
  font-family: Sora, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
}

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

.form-row.full-width {
  grid-template-columns: 1fr;
}

.step-navigation,
.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--auth-warm-200);
}

.review-summary,
.review-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-section,
.review-group {
  padding: 16px;
  border: 1px solid var(--auth-warm-200);
  border-radius: 16px;
  background: var(--auth-surface);
}

.review-section h4,
.review-group-title {
  margin: 0 0 10px;
  color: var(--auth-gray-900);
  font-weight: 800;
}

.review-item,
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--auth-warm-100);
}

.review-item:last-child,
.review-row:last-child {
  border-bottom: 0;
}

.review-label {
  color: var(--auth-gray-600);
  font-size: 13px;
  font-weight: 700;
}

.review-value {
  color: var(--auth-gray-900);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.payment-placeholder,
.placeholder-content {
  padding: 24px;
  border: 1px dashed var(--auth-gray-300);
  border-radius: 18px;
  background: var(--auth-surface);
  text-align: center;
}

.placeholder-icon,
.payment-placeholder-icon {
  font-size: 34px;
  margin-bottom: 10px;
}

.placeholder-features,
.payment-features {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  text-align: left;
}

.feature-item,
.payment-feature {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--auth-gray-600);
  font-size: 14px;
}

.privacy-notice-section,
.privacy-region-select {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.privacy-notice-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--auth-warm-200);
  border-radius: 14px;
  background: var(--auth-surface);
  color: var(--auth-gray-600);
}

.privacy-notice-item[hidden],
[hidden] {
  display: none !important;
}

.privacy-notice-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.privacy-notice-copy strong {
  color: var(--auth-gray-900);
}

.password-validation {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  max-width: 720px;
  margin: 12px 0;
}

.password-validation__fields {
  flex: 1 1 280px;
  min-width: 0;
}

.password-validation__requirements {
  flex: 1 1 260px;
  min-width: 220px;
}

.password-validation__card {
  padding: 16px;
  border: 1px solid var(--auth-warm-200);
  border-radius: 14px;
  background: var(--auth-surface);
}

.password-validation__title {
  margin: 0 0 12px;
  color: var(--auth-gray-800);
  font-size: 14px;
  font-weight: 800;
}

.password-strength-meter {
  margin: 12px 0 20px;
}

.password-strength-meter__label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--auth-gray-600);
  font-size: 12px;
  font-weight: 700;
}

.password-strength-meter__track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--auth-warm-200);
}

.password-strength-meter__fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--auth-gray-300);
  transition: width 0.24s, background 0.24s;
}

.password-strength-meter__fill--very-weak { width: 20%; background: var(--auth-red); }
.password-strength-meter__fill--weak { width: 40%; background: var(--auth-coral); }
.password-strength-meter__fill--fair { width: 60%; background: var(--auth-amber); }
.password-strength-meter__fill--good { width: 80%; background: var(--auth-teal); }
.password-strength-meter__fill--strong { width: 100%; background: var(--auth-green); }

.password-strength-meter__feedback {
  color: var(--auth-gray-600);
  font-size: 12px;
  line-height: 1.4;
}

.password-strength-meter__feedback ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

[id$="passwordRequirementsList"] {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

[id$="passwordRequirementsList"] li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-gray-600);
  font-size: 12px;
  line-height: 1.35;
}

[id$="passwordRequirementsList"] li.met {
  color: var(--auth-green);
}

.requirement-indicator {
  width: 17px;
  height: 17px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--auth-warm-200);
  color: var(--auth-gray-600);
  font-size: 10px;
  font-weight: 800;
}

.requirement-indicator--met {
  background: var(--auth-green);
  color: #fff;
}

.match-indicator {
  display: inline-flex;
  gap: 4px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}

.match-indicator--success { color: var(--auth-green); }
.match-indicator--error { color: var(--auth-red); }

.form-field__input.error,
.form-field__input:invalid:focus {
  border-color: var(--auth-red);
}

.form-field__error {
  color: var(--auth-red);
  font-size: 13px;
  font-weight: 700;
}

.invitation-details,
.invitation-info,
.existing-user-notice,
.email-readonly-notice,
.email-change-info {
  padding: 16px;
  border: 1px solid var(--auth-warm-200);
  border-radius: 16px;
  background: var(--auth-warm-50);
}

.invitation-details p,
.invitation-info p,
.existing-user-notice p {
  margin: 7px 0;
  color: var(--auth-gray-600);
  font-size: 14px;
}

.invite-message {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--auth-indigo);
  border-radius: 0 12px 12px 0;
  background: var(--auth-indigo-soft);
  color: var(--auth-gray-600);
}

.invite-message p,
.invite-message__quote {
  margin: 0;
  font-style: italic;
}

.invite-message cite,
.invite-message__byline {
  display: block;
  margin: 6px 0 0;
  color: var(--auth-gray-500);
  font-size: 13px;
  font-style: normal;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.auth-result-message {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
}

.auth-result-message--success {
  border: 1px solid #a7dac7;
  background: #edfaf7;
}

.auth-result-message--error {
  border: 1px solid #efc1bf;
  background: #fff4f1;
}

.auth-error-page .auth-card {
  text-align: center;
}

.auth-error-icon {
  color: var(--auth-coral);
  font-size: 52px;
}

.auth-terminal-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border-radius: 999px;
  font-family: Sora, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
}

.auth-terminal-icon--warning {
  background: #fff4f1;
  color: var(--auth-coral);
}

.auth-terminal-icon--muted {
  background: var(--auth-warm-100);
  color: var(--auth-gray-600);
}

.auth-terminal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.workspace-picker-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.workspace-picker-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--auth-warm-200);
  border-radius: 14px;
  background: var(--auth-warm-50);
}

.workspace-picker-list__summary {
  min-width: 0;
  flex: 1;
}

.workspace-picker-list__name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-gray-900);
  font-size: 15px;
  font-weight: 800;
}

.workspace-picker-list__badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--auth-indigo-soft);
  color: var(--auth-indigo);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-picker-list__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  color: var(--auth-gray-600);
  font-size: 12px;
}

.workspace-picker-list__state {
  font-weight: 800;
}

.workspace-picker-list__state--ready {
  color: var(--auth-green);
}

.workspace-picker-list__state--locked {
  color: var(--auth-amber);
}

.totp-auth-container,
.totp-step__content,
.totp-methods {
  display: grid;
  gap: 18px;
}

.totp-auth-method,
.totp-step,
.totp-method,
.totp-backup-codes,
.totp-error {
  padding: 18px;
  border: 1px solid var(--auth-warm-200);
  border-radius: 16px;
  background: var(--auth-warm-50);
}

.totp-auth-method--active,
.totp-step--active,
.totp-method--active {
  border-color: var(--auth-indigo);
  background: var(--auth-indigo-soft);
}

.totp-method-header,
.totp-step__header,
.totp-method__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  text-align: left;
}

.totp-method-content {
  flex: 1;
}

.totp-method-title,
.totp-step__title,
.totp-method__header h3,
.totp-success__title,
.totp-backup-codes__title,
.totp-error h2 {
  margin: 0 0 6px;
  color: var(--auth-gray-900);
  font-family: Sora, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.totp-method-description,
.totp-step__description,
.totp-qr-instructions,
.totp-manual-instructions,
.totp-success__message,
.totp-backup-codes__warning,
.totp-error p {
  margin: 0;
  color: var(--auth-gray-600);
  font-size: 14px;
  line-height: 1.5;
}

.totp-step__number {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--auth-indigo);
  color: #fff;
  font-weight: 800;
}

.totp-code-input-container,
.backup-code-input-container,
.totp-backup-option,
.totp-help-section,
.totp-qr-container,
.totp-success,
.totp-error {
  text-align: center;
}

.totp-code-input,
.backup-code-input {
  max-width: 260px;
  margin: 0 auto 10px;
}

.totp-divider {
  position: relative;
  text-align: center;
}

.totp-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--auth-warm-200);
}

.totp-divider-text {
  position: relative;
  padding: 0 12px;
  background: var(--auth-surface);
  color: var(--auth-gray-500);
  font-size: 13px;
  font-weight: 700;
}

.totp-help-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--auth-warm-200);
}

.totp-help-title {
  margin: 0 0 10px;
  color: var(--auth-gray-700, var(--auth-gray-600));
  font-size: 15px;
}

.totp-help-links,
.totp-backup-codes__actions,
.totp-success__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.totp-help-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.totp-help-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 24, 20, 0.42);
  cursor: pointer;
}

.totp-help-content {
  position: relative;
  width: min(520px, 100%);
  max-height: 82vh;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--auth-warm-200);
  background: var(--auth-surface);
  box-shadow: var(--auth-shadow-modal);
}

.totp-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--auth-warm-200);
}

.totp-help-header h2 {
  margin: 0;
  font-size: 18px;
}

.totp-help-close,
.btn-copy {
  border: 0;
  border-radius: 8px;
  background: var(--auth-warm-100);
  color: var(--auth-gray-800);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
}

.totp-help-body {
  padding: 18px;
  color: var(--auth-gray-700, var(--auth-gray-600));
  line-height: 1.5;
}

.totp-apps,
.totp-backup-codes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.totp-app,
.backup-code {
  padding: 12px;
  border: 1px solid var(--auth-warm-200);
  border-radius: 12px;
  background: var(--auth-surface);
  text-align: center;
}

.totp-app__platforms {
  display: block;
  margin-top: 4px;
  color: var(--auth-gray-500);
  font-size: 12px;
}

.totp-qr-code {
  width: min(220px, 100%);
  height: auto;
  margin-bottom: 12px;
  border: 8px solid var(--auth-surface);
  border-radius: 14px;
  box-shadow: var(--auth-shadow-card);
}

.totp-manual-details {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.totp-manual-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--auth-warm-200);
  border-radius: 12px;
  background: var(--auth-surface);
}

.totp-manual-label {
  color: var(--auth-gray-600);
  font-size: 13px;
  font-weight: 800;
}

.totp-manual-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.totp-manual-value code,
.backup-code {
  color: var(--auth-gray-900);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-weight: 800;
  word-break: break-all;
}

.btn--loading {
  opacity: 0.7;
  pointer-events: none;
}

.form-actions,
.form-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  text-align: center;
}

.code-input,
.form-field__input[autocomplete="one-time-code"] {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.coverage-shell {
  align-items: flex-start;
}

.coverage-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--border-color, #d9dee7);
  border-radius: 8px;
  background: var(--surface-color, #fff);
  color: var(--auth-gray-900);
  box-shadow: 0 18px 45px rgb(20 31 51 / 10%);
}

.coverage-card__header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.coverage-card__header h1,
.coverage-option h2 {
  margin: 0;
  letter-spacing: 0;
  color: var(--auth-gray-900);
}

.coverage-card__header p,
.coverage-option p {
  color: var(--auth-gray-600);
  line-height: 1.55;
}

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

.coverage-option {
  padding: 22px;
  border: 1px solid var(--border-color, #d9dee7);
  border-radius: 8px;
  background: var(--surface-subtle, #f8fafc);
}

.coverage-option--primary {
  grid-column: span 2;
  border-color: var(--primary-color, #2b7455);
}

.coverage-option--disabled {
  opacity: 0.72;
}

.coverage-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .coverage-card {
    padding: 24px 18px;
  }

  .coverage-card__header,
  .coverage-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .coverage-option--primary {
    grid-column: auto;
  }

  .auth-public-nav {
    min-height: 70px;
    padding: 0 18px;
  }

  .auth-logo {
    font-size: 16px;
  }

  .auth-shell,
  .page-container.public-auth-shell {
    min-height: calc(100vh - 70px);
    padding: 22px 14px;
  }

  .auth-card,
  .card.card--large.auth-card {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }

  .auth-card__title,
  .card__title {
    font-size: 24px;
  }

  .form-row,
  .password-validation {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .step-navigation,
  .auth-actions,
  .action-buttons,
  .form-actions,
  .form-footer,
  .auth-terminal-actions,
  .workspace-picker-list__item,
  .totp-method-header,
  .totp-step__header,
  .totp-method__header,
  .totp-manual-field {
    flex-direction: column;
    align-items: stretch;
  }

  .step-navigation .btn,
  .auth-actions .btn,
  .action-buttons .btn,
  .form-actions .btn,
  .form-footer .btn,
  .auth-terminal-actions .btn,
  .workspace-picker-list__item .btn,
  .totp-help-links .btn,
  .totp-backup-codes__actions .btn,
  .totp-success__actions .btn {
    width: 100%;
  }
}

@media (max-height: 760px) {
  .auth-public-nav {
    min-height: 72px;
  }

  .auth-shell,
  .page-container.public-auth-shell {
    min-height: calc(100svh - 72px);
  }

  .login-page .auth-shell {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .login-page .auth-card {
    padding: 28px 32px;
  }

  .login-page .auth-card__header {
    margin-bottom: 18px;
  }

  .login-page .auth-card__eyebrow {
    min-width: 30px;
    height: 30px;
    margin-bottom: 10px;
    font-size: 15px;
  }

  .login-page .auth-card__title {
    font-size: 26px;
  }

  .login-page .auth-card__subtitle {
    margin-top: 8px;
    font-size: 14px;
  }

  .login-page .form-field__input,
  .login-page .auth-input,
  .login-page .form-field select,
  .login-page .form-field textarea {
    min-height: 44px;
  }

  .login-page .btn,
  .login-page .btn--primary {
    min-height: 42px;
  }

  .login-page .auth-footer {
    margin-top: 14px;
    padding-top: 12px;
  }
}
