/* ==========================================================================
   NX AI — Auth pages (login / register) shared styles
   ========================================================================== */

html, body { height: 100%; }
body { overflow-x: hidden; }

/* ==========================================================================
   Minimal nav bar
   ========================================================================== */
.auth-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
}
.auth-nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--nx-ink-600);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.auth-back:hover {
  background: rgba(255,255,255,0.9);
  border-color: var(--nx-line-strong);
  color: var(--nx-ink-900);
}
.auth-back svg { transition: transform 0.2s; }
.auth-back:hover svg { transform: translateX(-3px); }
@media (max-width: 560px) {
  .auth-nav-inner { padding: 0 20px; }
}

/* ==========================================================================
   Main shell — 40 : 60 split
   ========================================================================== */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 960px) {
  .auth-shell { grid-template-columns: 40% 60%; }
}

/* ==========================================================================
   LEFT: Brand + AI Core visualization
   ========================================================================== */
.auth-left {
  position: relative;
  padding: 128px 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 44px;
  overflow: hidden;
}
@media (max-width: 1200px) {
  .auth-left { padding: 128px 40px 48px; gap: 36px; }
}
@media (max-width: 960px) {
  .auth-left {
    padding: 96px 24px 24px;
    justify-content: flex-start;
    gap: 20px;
  }
}

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--nx-ink-600);
  backdrop-filter: blur(8px);
  box-shadow: var(--nx-shadow-sm);
  line-height: 1;
  align-self: flex-start;
  margin-bottom: 24px;
}
.brand-eyebrow .tag {
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  color: #fff;
  font-family: var(--nx-font-mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-weight: 600;
  line-height: 1.2;
}

.brand-heading {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: var(--nx-ls-tight);
  color: var(--nx-ink-900);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
.brand-heading .grad {
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.04em;
}
.brand-tagline {
  font-size: 16px;
  line-height: 1.75;
  color: var(--nx-ink-500);
  letter-spacing: var(--nx-ls-body);
  max-width: 460px;
  text-wrap: pretty;
  margin: 18px 0 0;
}
@media (max-width: 960px) {
  .brand-heading { font-size: 26px; }
  .brand-tagline { font-size: 14px; line-height: 1.65; margin-top: 14px; }
  .brand-eyebrow { margin-bottom: 18px; }
}

/* AI Core diagram */
.brand-core {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  margin-top: 8px;
}
@media (max-width: 960px) { .brand-core { display: none; } }
.brand-core svg { width: 100%; height: 100%; overflow: visible; }

.brand-core-stat {
  position: absolute;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  padding: 9px 13px;
  color: var(--nx-ink-500);
  backdrop-filter: blur(8px);
  box-shadow: var(--nx-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: brand-float 6s ease-in-out infinite;
  line-height: 1;
}
.brand-core-stat .lbl {
  font-family: var(--nx-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--nx-ink-400);
  text-transform: uppercase;
  font-weight: 500;
}
.brand-core-stat .val {
  font-family: var(--nx-font-mono);
  font-size: 13.5px;
  color: var(--nx-ink-900);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.brand-core-stat.s1 { top: 6%; right: -8px; animation-delay: -1s; }
.brand-core-stat.s2 { bottom: 8%; left: -12px; animation-delay: -3s; }
@keyframes brand-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Core diagram node animations */
@keyframes core-node-pulse {
  0%, 100% { r: 6; opacity: 1; }
  50% { r: 6.6; opacity: 0.9; }
}
.brand-core .node-r { animation: core-node-pulse 4.5s ease-in-out infinite; transform-origin: center; }
.brand-core .node-c { animation: core-node-pulse 4.5s ease-in-out infinite; animation-delay: -1.5s; }
.brand-core .node-l { animation: core-node-pulse 4.5s ease-in-out infinite; animation-delay: -3s; }
@keyframes flow-move { to { stroke-dashoffset: -32; } }
.brand-core .flow-line { stroke-dasharray: 3 6; animation: flow-move 9s linear infinite; }
@keyframes ring-rotate { to { transform: rotate(360deg); } }
.brand-core .outer-ring { transform-origin: 50% 50%; animation: ring-rotate 80s linear infinite; }
.brand-core .node-label {
  font-family: var(--nx-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-core .node-sub {
  font-family: var(--nx-font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Bottom system-status footer */
.brand-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px dashed var(--nx-line);
  font-size: 12.5px;
  color: var(--nx-ink-500);
  letter-spacing: 0.01em;
  margin-top: auto;
  line-height: 1;
}
.brand-footer .nx-dot {
  width: 6px; height: 6px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}
@media (max-width: 960px) { .brand-footer { display: none; } }

/* ==========================================================================
   RIGHT: form area
   ========================================================================== */
.auth-right {
  position: relative;
  padding: 128px 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.55) 100%);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--nx-line);
}
@media (max-width: 1200px) {
  .auth-right { padding: 128px 40px 48px; }
}
@media (max-width: 960px) {
  .auth-right {
    padding: 24px 24px 40px;
    border-left: none;
    border-top: 1px solid var(--nx-line);
    background: rgba(255,255,255,0.7);
  }
}
@media (max-width: 560px) {
  .auth-right { padding: 20px 20px 36px; }
}

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.auth-card.wide { max-width: 460px; }

.auth-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: var(--nx-ls-snug);
  color: var(--nx-ink-900);
  line-height: 1.2;
  margin: 0 0 10px;
  text-wrap: balance;
}
.auth-subtitle {
  font-size: 14.5px;
  color: var(--nx-ink-500);
  line-height: 1.7;
  letter-spacing: var(--nx-ls-body);
  margin: 0 0 32px;
  text-wrap: pretty;
}
@media (max-width: 560px) {
  .auth-title { font-size: 26px; }
  .auth-subtitle { font-size: 14px; margin-bottom: 24px; }
}

/* ==========================================================================
   Form
   ========================================================================== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-form.dense { gap: 16px; }

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .auth-form-row { grid-template-columns: 1fr; gap: 16px; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--nx-ink-700);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0 2px;
}
.field-label .hint {
  font-size: 11.5px;
  color: var(--nx-ink-400);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}
.field-label .req {
  color: var(--nx-danger);
  font-weight: 600;
  margin-left: 4px;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.field-hint-below {
  font-size: 12px;
  color: var(--nx-ink-400);
  letter-spacing: 0.01em;
  padding: 2px 2px 0;
  line-height: 1.5;
}

/* Input */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap .input-icon {
  position: absolute;
  left: 14px;
  color: var(--nx-ink-400);
  pointer-events: none;
  transition: color 0.2s;
  display: grid;
  place-items: center;
}
.auth-input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  font-family: var(--nx-font-sans);
  font-size: 14.5px;
  color: var(--nx-ink-900);
  letter-spacing: var(--nx-ls-body);
  line-height: 1.4;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  outline: none;
}
.auth-input::placeholder {
  color: var(--nx-ink-300);
  letter-spacing: 0.01em;
  font-weight: 400;
}
.auth-input:hover { border-color: var(--nx-line-strong); }
.auth-input:focus {
  border-color: var(--nx-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.input-wrap:focus-within .input-icon { color: var(--nx-primary); }

/* Dense variant (register: shorter inputs) */
.auth-form.dense .auth-input {
  height: 46px;
  border-radius: 10px;
  padding-left: 42px;
  font-size: 14px;
}

/* Password toggle */
.input-wrap .input-toggle {
  position: absolute;
  right: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--nx-ink-400);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border: none;
  background: transparent;
}
.input-wrap .input-toggle:hover {
  color: var(--nx-ink-700);
  background: rgba(15, 23, 42, 0.04);
}

/* Phone number: rebuild as a composed input (icon + prefix + input) */
.phone-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 48px;
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.auth-form.dense .phone-field { height: 46px; border-radius: 10px; }
.phone-field:hover { border-color: var(--nx-line-strong); }
.phone-field:focus-within {
  border-color: var(--nx-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.phone-field .phone-icon {
  display: grid;
  place-items: center;
  width: 42px;
  color: var(--nx-ink-400);
  flex-shrink: 0;
  transition: color 0.2s;
}
.phone-field:focus-within .phone-icon { color: var(--nx-primary); }
.phone-field .phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px 0 0;
  margin-right: 10px;
  border-right: 1px solid var(--nx-line);
  color: var(--nx-ink-600);
  font-family: var(--nx-font-mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}
.phone-field .phone-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 14px 0 0;
  font-family: var(--nx-font-sans);
  font-size: 14.5px;
  color: var(--nx-ink-900);
  letter-spacing: var(--nx-ls-body);
  line-height: 1.4;
  outline: none;
  height: 100%;
}
.auth-form.dense .phone-field .phone-input { font-size: 14px; }
.phone-field .phone-input::placeholder {
  color: var(--nx-ink-300);
  letter-spacing: 0.01em;
  font-weight: 400;
}

/* Referral / invite (uppercase mono) */
.invite-input {
  text-transform: uppercase;
  letter-spacing: 0.06em !important;
  font-family: var(--nx-font-mono) !important;
  font-weight: 500;
}
.invite-input::placeholder {
  text-transform: none;
  letter-spacing: 0.01em !important;
  font-family: var(--nx-font-sans) !important;
}

/* ==========================================================================
   Options row (remember me + forgot)
   ========================================================================== */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding: 0 2px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--nx-ink-600);
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.01em;
  line-height: 1;
  position: relative;
}
.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check .box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--nx-line-strong);
  background: #fff;
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.check .box svg {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s;
}
.check input:checked + .box {
  background: var(--nx-primary);
  border-color: var(--nx-primary);
}
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .box {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.auth-link {
  font-size: 13.5px;
  color: var(--nx-primary);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
  line-height: 1;
}
.auth-link:hover {
  color: var(--nx-primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Terms row (multi-line) */
.terms {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--nx-ink-600);
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.01em;
  line-height: 1.55;
  margin-top: 4px;
  padding: 0 2px;
  position: relative;
}
.terms input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.terms .box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--nx-line-strong);
  background: #fff;
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
  margin-top: 1px;
}
.terms .box svg { opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.15s; }
.terms input:checked + .box {
  background: var(--nx-primary);
  border-color: var(--nx-primary);
}
.terms input:checked + .box svg { opacity: 1; transform: scale(1); }
.terms a {
  color: var(--nx-primary);
  font-weight: 500;
  transition: color 0.15s;
}
.terms a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Submit button
   ========================================================================== */
.auth-submit {
  margin-top: 12px;
  width: 100%;
  height: 50px;
  padding: 0 20px;
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.20) inset,
    0 6px 16px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-submit:hover {
  background: linear-gradient(180deg, #1D4ED8 0%, #1E40AF 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.20) inset,
    0 8px 20px rgba(37, 99, 235, 0.36);
  transform: translateY(-1px);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit svg { transition: transform 0.2s; }
.auth-submit:hover svg { transform: translateX(3px); }

/* Submit button icon slot (arrow / spinner swap) */
.auth-submit .btn-icon {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.auth-submit .btn-icon svg {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
}
.auth-submit .btn-spinner {
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity 0.18s;
}
.auth-submit .btn-arrow {
  opacity: 1;
  transition: opacity 0.18s, transform 0.2s;
}
.auth-submit .btn-label {
  transition: opacity 0.18s;
}

/* Loading state */
.auth-submit.is-loading {
  cursor: progress;
  pointer-events: none;
  background: linear-gradient(180deg, #1D4ED8 0%, #1E40AF 100%);
  transform: none;
}
.auth-submit.is-loading:hover { transform: none; }
.auth-submit.is-loading .btn-arrow { opacity: 0; }
.auth-submit.is-loading .btn-spinner {
  opacity: 1;
  animation: nx-btn-spin 0.85s linear infinite;
}
.auth-submit.is-loading .btn-label {
  opacity: 0.92;
}
@keyframes nx-btn-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ==========================================================================
   Divider + register/login link
   ========================================================================== */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 6px;
  color: var(--nx-ink-400);
  font-size: 11px;
  font-family: var(--nx-font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--nx-line);
}
.auth-register {
  text-align: center;
  font-size: 14px;
  color: var(--nx-ink-500);
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.auth-register a {
  color: var(--nx-primary);
  font-weight: 600;
  margin-left: 4px;
  transition: color 0.15s;
}
.auth-register a:hover {
  color: var(--nx-primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Status pill (green LIVE indicator)
   ========================================================================== */
.auth-status {
  margin-top: 32px;
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 999px;
  font-size: 12px;
  color: var(--nx-success);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}
.auth-status .nx-dot {
  width: 6px; height: 6px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

/* ==========================================================================
   Field error state
   ========================================================================== */
.field.has-error .auth-input,
.field.has-error .phone-field {
  border-color: #DC2626;
  background: #FEF2F2;
}
.field.has-error .auth-input:focus,
.field.has-error .phone-field:focus-within {
  border-color: #DC2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}
.field.has-error .input-icon { color: #DC2626; }
.field.has-error .input-wrap:focus-within .input-icon { color: #DC2626; }
.field.has-error .field-label { color: #DC2626; }

.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #DC2626;
  letter-spacing: 0.01em;
  padding: 2px 2px 0;
  line-height: 1.4;
  animation: nx-err-in 0.18s ease-out;
}
.field-error svg { flex-shrink: 0; }
@keyframes nx-err-in {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Form-top banner (error / warn / info)
   ========================================================================== */
.auth-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-left: 3px solid #DC2626;
  margin-bottom: 4px;
  animation: nx-err-in 0.22s ease-out;
}
.auth-banner .bnr-icon {
  flex-shrink: 0;
  color: #DC2626;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.auth-banner .bnr-body {
  flex: 1;
  min-width: 0;
}
.auth-banner .bnr-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #991B1B;
  letter-spacing: 0.01em;
  line-height: 1.45;
}
.auth-banner .bnr-desc {
  font-size: 12.5px;
  color: #B91C1C;
  letter-spacing: 0.01em;
  line-height: 1.55;
  margin-top: 3px;
}
.auth-banner .bnr-desc a {
  color: #DC2626;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-banner .bnr-desc a:hover { color: #991B1B; }

/* Warn variant (amber) — reserved */
.auth-banner.is-warn {
  background: rgba(217, 119, 6, 0.06);
  border-color: rgba(217, 119, 6, 0.22);
  border-left-color: #D97706;
}
.auth-banner.is-warn .bnr-icon { color: #D97706; }
.auth-banner.is-warn .bnr-title { color: #92400E; }
.auth-banner.is-warn .bnr-desc { color: #B45309; }

/* ==========================================================================
   Register success card
   ========================================================================== */
.auth-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px 4px;
  animation: nx-err-in 0.32s ease-out;
}
.auth-success .succ-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(180deg, #DCFCE7 0%, #BBF7D0 100%);
  display: grid;
  place-items: center;
  color: #16A34A;
  margin-bottom: 22px;
  box-shadow:
    0 0 0 6px rgba(22, 163, 74, 0.08),
    0 8px 24px rgba(22, 163, 74, 0.18);
  animation: nx-succ-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes nx-succ-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.auth-success .succ-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--nx-ink-900);
  letter-spacing: var(--nx-ls-snug);
  margin: 0 0 10px;
}
.auth-success .succ-desc {
  font-size: 14px;
  color: var(--nx-ink-500);
  line-height: 1.7;
  margin: 0 0 26px;
  max-width: 320px;
}
.auth-success .succ-desc b {
  color: var(--nx-ink-800);
  font-weight: 600;
}
.auth-success .succ-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-success .succ-actions .auth-submit {
  margin-top: 0;
}
.auth-success .succ-actions .succ-ghost {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--nx-line);
  background: #fff;
  color: var(--nx-ink-700);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.auth-success .succ-actions .succ-ghost:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: var(--nx-line-strong);
}

/* ==========================================================================
   State switcher (design mode only)
   ========================================================================== */
.nx-state-switch {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
  min-width: 200px;
  backdrop-filter: blur(12px);
  font-family: var(--nx-font-sans);
  transition: transform 0.2s, opacity 0.2s;
}
.nx-state-switch.is-collapsed {
  min-width: 0;
  padding: 10px 12px;
}
.nx-state-switch.is-collapsed .nx-ss-list,
.nx-state-switch.is-collapsed .nx-ss-sub { display: none; }
.nx-state-switch .nx-ss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
  font-family: var(--nx-font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2px;
  cursor: pointer;
  user-select: none;
}
.nx-state-switch .nx-ss-head::after {
  content: "▾";
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  transition: transform 0.2s;
}
.nx-state-switch.is-collapsed .nx-ss-head::after {
  transform: rotate(-90deg);
}
.nx-state-switch .nx-ss-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin: 4px 0 8px;
  letter-spacing: 0.02em;
}
.nx-state-switch .nx-ss-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nx-state-switch .nx-ss-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.nx-state-switch .nx-ss-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.nx-state-switch .nx-ss-btn.is-active {
  background: rgba(37, 99, 235, 0.22);
  color: #fff;
  font-weight: 600;
}
.nx-state-switch .nx-ss-btn .nx-ss-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  flex-shrink: 0;
}
.nx-state-switch .nx-ss-btn.is-active .nx-ss-dot {
  background: #60A5FA;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.8);
}

/* ==========================================================================
   Utility
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
