.app-loading .auth-shell {
  visibility: hidden;
}

.auth-body {
  background: radial-gradient(circle at 18% 18%, rgba(29, 78, 216, 0.14), transparent 32%), radial-gradient(circle at 82% 82%, rgba(29, 78, 216, 0.18), transparent 34%),
  linear-gradient(135deg, #050d26 0%, #020617 100%);
}

.auth-panel-inner {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45); width: 100%; max-width: 520px; box-sizing: border-box; background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
  border: 1px solid rgba(37, 99, 235, 0.28); border-radius: 24px; padding: 24px; overflow: hidden; color: #eff6ff;
}

.button:hover {
  transform: translateY(-1px); background: var(--navy); border-color: rgba(29, 78, 216, 0.32);
}

.auth-shell {
  min-height: 100vh; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr;
  place-items: center center; padding: 32px 16px; box-sizing: border-box;
}

.auth-panel {
  display: grid; place-items: center center; padding: 24px 16px 40px; width: 100%; box-sizing: border-box;
  background: radial-gradient(circle at 82% 12%, rgba(29, 78, 216, 0.18), transparent 48%),
  linear-gradient(135deg, #020617 0%, #050d26 100%);
}

/* ======================= SINGLE-COLUMN LOGIN (default desktop+mobile) — top-level, NO media wrap ======================= */

html,
body.auth-body.auth-body-single {
  background: radial-gradient(circle at 12% 12%, rgba(95, 190, 182, 0.18), transparent 38%), radial-gradient(circle at 88% 88%, rgba(95, 190, 182, 0.10), transparent 40%), #000000 !important;
  min-height: 100vh; min-height: 100dvh; height: 100%; color: #ffffff; margin: 0; padding: 0 !important; overflow: hidden;
}

body.auth-body.auth-body-single {
  display: grid !important; place-items: center !important; width: 100%;
}

.auth-shell.auth-shell-single {
  display: block; min-height: 0 !important; height: auto !important; width: min(100%, 552px); padding: 16px; box-sizing: border-box; margin: 0 auto;
}

.auth-shell-single .auth-showcase {
  display: none !important;
}

.auth-panel.auth-panel-single {
  display: flex; align-items: center; justify-content: center; padding: 0; background: transparent; width: 100%; max-width: 520px; margin: 0 auto;
}

.auth-panel-inner.auth-panel-inner-single {
  width: 100%; max-width: 520px; box-sizing: border-box; background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 22px;
  padding: 40px 36px 36px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.70), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 14px 44px rgba(0, 0, 0, 0.55);
  overflow: visible; color: #ffffff; margin: 0 auto;
}

/* Login logo: PERFECT CIRCLE (96px desktop / 80px mobile), auto-centered, white inner logo fit */
.auth-logo-circle {
  width: 96px; height: 96px; border-radius: 999px; margin: 0 auto 24px; background: #000000; border: 2px solid rgba(120, 155, 152, 0.55);
  box-shadow: 0 0 0 4px rgba(120, 155, 152, 0.06), 0 8px 18px rgba(0, 0, 0, 0.45);
  display: grid; place-items: center; padding: 12px; box-sizing: border-box; overflow: hidden;
}

.auth-logo-circle-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}

.auth-header.auth-header-centered {
  text-align: center; margin: 0 0 32px;
}

.auth-card-title {
  margin: 0 0 10px; font-size: 1.6rem; line-height: 1.2; font-weight: 800; letter-spacing: 0.05em; font-family: Montserrat, Arial, sans-serif; color: #ffffff; text-transform: uppercase;
  text-align: center;
}

.auth-card-subtitle {
  margin: 0; font-size: 0.98rem; line-height: 1.5; color: rgba(255, 255, 255, 0.72); font-weight: 400; text-align: center;
}

.auth-form.auth-form-single {
  margin-top: 0; display: grid; gap: 20px;
}

.login-workflow-shell {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; width: 100%;
}

.login-workflow-step {
  display: grid; justify-items: center; gap: 7px; padding: 10px 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.56); min-width: 0;
}

.login-workflow-step.is-active {
  background: rgba(128, 155, 153, 0.12); border-color: rgba(128, 155, 153, 0.42); color: #ffffff;
  box-shadow: 0 0 0 1px rgba(128, 155, 153, 0.12) inset;
}

.login-workflow-index {
  width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12); color: inherit; font-size: 0.76rem; font-weight: 800;
}

.login-workflow-step.is-active .login-workflow-index {
  background: linear-gradient(180deg, #809B99 0%, #708B89 100%); border-color: rgba(128, 155, 153, 0.45); color: #0e1514;
}

.login-workflow-label {
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
}

.login-workflow-summary {
  margin: 0 0 18px; text-align: center; color: rgba(255, 255, 255, 0.62); font-size: 0.84rem; line-height: 1.45;
}

.login-link-row {
  display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px;
}

.button.button-text-link {
  appearance: none; background: transparent; border: 0; padding: 0; color: #809B99; cursor: pointer; font: inherit;
  font-size: 0.84rem; font-weight: 700; text-align: center; text-decoration: none;
}

.button.button-text-link:hover {
  color: #9db4b2; background: transparent; border: 0; transform: none;
}

.login-support-note {
  margin: 10px 0 0; text-align: center; font-size: 0.76rem; line-height: 1.45; color: rgba(255, 255, 255, 0.52);
}

.auth-modal-backdrop {
  position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.92) 100%);
  backdrop-filter: blur(10px);
}

.auth-modal-card {
  width: min(460px, calc(100vw - 32px)); display: grid; gap: 16px; box-sizing: border-box;
  padding: 24px; border-radius: 22px; background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(0, 0, 0, 1) 100%);
  border: 1px solid rgba(128, 155, 153, 0.20); color: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.70), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.auth-modal-card-compact {
  gap: 14px;
}

.auth-stage-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}

.auth-stage-actions-single {
  grid-template-columns: 1fr;
}

.button.button-secondary {
  min-height: 52px; height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04); color: #ffffff; font-weight: 700; font-size: 0.94rem; cursor: pointer;
}

.button.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); transform: translateY(-1px);
}

/* ======================= MOBILE OVERRIDES (<= 640px) — only adjust values, no base layout ======================= */

@media (max-width: 640px) {
.auth-shell.auth-shell-single { width: min(100%, 468px); padding: 14px; }
.auth-panel-inner.auth-panel-inner-single { max-width: 440px; padding: 32px 22px 28px; border-radius: 20px; }
.auth-logo-circle { width: 80px; height: 80px; padding: 10px; margin: 0 auto 18px; }
.auth-header.auth-header-centered { margin-bottom: 22px; }
.auth-card-title { font-size: 1.55rem; }
.auth-card-subtitle { font-size: 0.95rem; }
.login-workflow-shell { gap: 6px; margin-bottom: 16px; }
.login-workflow-step { padding: 9px 6px; border-radius: 12px; }
.login-workflow-index { width: 22px; height: 22px; font-size: 0.72rem; }
.login-workflow-label { font-size: 0.64rem; letter-spacing: 0.04em; }
.login-workflow-summary { margin-bottom: 16px; font-size: 0.80rem; }
.auth-form.auth-form-single { gap: 18px; }
.auth-stage-card.auth-stage-card-single { padding: 18px; border-radius: 18px; }
.auth-modal-card { width: min(100%, calc(100vw - 24px)); padding: 20px 18px; border-radius: 18px; }
.auth-stage-actions { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
.auth-panel-inner { max-width: 520px; }
}

.field-label-uppercase {
  display: block; margin: 0 0 8px; font-size: 0.78rem; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: rgba(255, 255, 255, 0.58);
}

.auth-form-single .field > span {
  color: rgba(255, 255, 255, 0.58);
}

.auth-panel-inner-single .input-field::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.auth-panel-inner-single .input-field:focus {
  outline: none; border-color: rgba(255, 255, 255, 0.38); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); background: #060606;
}

.button-mint-primary {
  width: 100%; min-height: 52px; height: 52px; padding: 0 20px; margin-top: 4px; background: linear-gradient(180deg, #809B99 0%, #708B89 100%); border: 1px solid rgba(128, 155, 153, 0.45);
  border-radius: 14px; color: #0e1514; font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; box-shadow: 0 10px 22px rgba(128, 155, 153, 0.18), 0 2px 0 rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease; cursor: pointer; font-family: inherit;
}

.auth-panel-inner-single .button.button-mint-primary {
  width: 100%; min-height: 52px; height: 52px; padding: 0 20px; margin-top: 4px; background: linear-gradient(180deg, #809B99 0%, #708B89 100%); border: 1px solid rgba(128, 155, 153, 0.45);
  border-radius: 14px; color: #0e1514; font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; box-shadow: 0 10px 22px rgba(128, 155, 153, 0.18), 0 2px 0 rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease; cursor: pointer; font-family: inherit;
}

.button-mint-primary:hover {
  background: linear-gradient(180deg, #708B89 0%, #617A78 100%); border-color: rgba(112, 139, 137, 0.55); filter: brightness(1.03); box-shadow: 0 12px 26px rgba(128, 155, 153, 0.24);
}

.auth-panel-inner-single .button.button-mint-primary:hover {
  background: linear-gradient(180deg, #708B89 0%, #617A78 100%); border-color: rgba(112, 139, 137, 0.55); filter: brightness(1.03); box-shadow: 0 12px 26px rgba(128, 155, 153, 0.24);
}

.auth-panel-inner-single .button.button-mint-primary:active {
  transform: translateY(1px);
}

.helper-text-centered {
  text-align: center; margin: -4px 0 0; min-height: 1.2em; color: rgba(255, 255, 255, 0.60);
}

.auth-footer-link {
  margin: 8px 0 0; text-align: center;
}

@media (max-width: 640px) {
.auth-stage-card.auth-stage-card-single {
  display: grid; gap: 16px; min-width: 0; box-sizing: border-box; padding: 18px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.12); background: #080808;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.04), 0 4px 16px rgba(0, 0, 0, 0.45); color: #ffffff;
}

}

.auth-stage-card-single h3 {
  margin: 0; overflow-wrap: anywhere; font-size: 1.2rem; color: #ffffff;
}

.auth-stage-card-single .auth-qr-wrap {
  display: grid; place-items: center; padding: 18px; border-radius: 18px; background: #000000; border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-stage-card-single .auth-qr-image {
  width: min(100%, 240px); height: auto; display: block; background: #ffffff; border-radius: 8px; padding: 8px; box-sizing: border-box;
}

.auth-stage-card-single .auth-secret-card {
  display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; border: 1px dashed rgba(128, 155, 153, 0.34); background: #000000;
}

.auth-stage-card-single .auth-secret-card span {
  font-size: 0.82rem; font-weight: 700; color: rgba(255, 255, 255, 0.58); text-transform: uppercase; letter-spacing: 0.08em;
}

.auth-stage-card-single .auth-secret-card code {
  word-break: break-all; color: #809B99; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.auth-stage-card-single .field > span {
  color: rgba(255, 255, 255, 0.58);
}

.auth-page-copy {
  margin: 0 0 22px; text-align: center; color: rgba(255, 255, 255, 0.68); font-size: 0.92rem; line-height: 1.5;
}

.auth-page-note {
  margin: 12px 0 0; text-align: center; color: rgba(255, 255, 255, 0.54); font-size: 0.80rem; line-height: 1.45;
}
