:root {
  --pointer-x: 50vw;
  --pointer-y: 20vh;
}

.auth-modal {
  max-width: 980px;
  overflow: hidden;
}

.auth-modal .modal-body {
  padding: 0;
}

.auth-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 620px;
  background:
    radial-gradient(circle at 15% 15%, rgba(201, 168, 76, .18), transparent 30%),
    radial-gradient(circle at 85% 85%, rgba(91, 196, 196, .12), transparent 35%),
    linear-gradient(145deg, rgba(10, 12, 24, .98), rgba(20, 24, 48, .96));
}

.auth-ambient {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.auth-ambient-a {
  top: -40px;
  left: -60px;
  background: rgba(201, 168, 76, .14);
}

.auth-ambient-b {
  right: -30px;
  bottom: -50px;
  background: rgba(91, 196, 196, .12);
}

.auth-art-panel,
.auth-form-panel {
  position: relative;
  z-index: 1;
}

.auth-art-panel {
  padding: 2.75rem;
  border-right: 1px solid rgba(201, 168, 76, .16);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.auth-eyebrow {
  font-family: var(--font-heading);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.auth-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.05;
  color: var(--gold-pale);
}

.auth-copy {
  max-width: 32ch;
  color: var(--textd);
  font-size: 1.02rem;
  line-height: 1.7;
}

.auth-crest-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 1rem 0;
}

.auth-orbit,
.auth-crest-core {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}

.auth-orbit-outer {
  width: 190px;
  height: 190px;
  border: 1px solid rgba(201, 168, 76, .3);
  animation: authSpin 16s linear infinite;
}

.auth-orbit-inner {
  width: 124px;
  height: 124px;
  border: 1px dashed rgba(91, 196, 196, .4);
  animation: authSpinReverse 10s linear infinite;
}

.auth-crest-core {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--gold-light);
  background: radial-gradient(circle at 30% 30%, rgba(201, 168, 76, .45), rgba(28, 34, 64, .95));
  box-shadow: 0 0 30px rgba(201, 168, 76, .18);
}

.auth-feature-list {
  display: grid;
  gap: .65rem;
}

.auth-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  padding: .6rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, .16);
  background: rgba(255, 255, 255, .03);
  color: var(--textd);
  font-size: .9rem;
}

.auth-feature-chip i {
  color: var(--teal);
}

.auth-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin-top: .25rem;
}

.auth-stat-box {
  padding: .9rem .85rem;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid rgba(201, 168, 76, .12);
}

.auth-stat-box strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--gold-pale);
  margin-bottom: .25rem;
}

.auth-stat-box span {
  color: var(--textd);
  font-size: .82rem;
}

.auth-form-panel {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-mode-tabs {
  display: inline-flex;
  gap: .35rem;
  padding: .3rem;
  border: 1px solid rgba(201, 168, 76, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  margin-bottom: 1.35rem;
}

.auth-mode-tab {
  border: none;
  background: transparent;
  color: var(--textd);
  padding: .55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: .7rem;
  letter-spacing: .08em;
}

.auth-mode-tab.active {
  background: linear-gradient(135deg, rgba(201, 168, 76, .25), rgba(91, 196, 196, .16));
  color: var(--gold-pale);
}

.auth-quick-actions {
  display: grid;
  gap: .6rem;
}

.auth-demo-box {
  margin-top: .85rem;
  padding: .85rem 1rem;
  border-radius: var(--r2);
  border: 1px solid rgba(91, 196, 196, .2);
  background: linear-gradient(145deg, rgba(91, 196, 196, .08), rgba(255, 255, 255, .02));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-demo-label {
  font-family: var(--font-heading);
  font-size: .65rem;
  letter-spacing: .1em;
  color: var(--teal);
}

.auth-demo-creds {
  color: var(--textd);
  font-size: .86rem;
}

.auth-prompt-panel {
  margin-bottom: 1rem;
  padding: .95rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(201, 168, 76, .14);
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

.auth-prompt-panel-soft {
  border-color: rgba(91, 196, 196, .18);
}

.auth-prompt-title {
  font-family: var(--font-heading);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: .65rem;
}

.auth-prompt-list {
  display: grid;
  gap: .55rem;
}

.auth-prompt-list.compact {
  gap: .45rem;
}

.auth-prompt-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: var(--textd);
  font-size: .9rem;
  line-height: 1.5;
}

.auth-prompt-item i {
  color: var(--teal);
  margin-top: .15rem;
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

@keyframes authSpinReverse {
  to { transform: rotate(-360deg); }
}

@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-art-panel {
    border-right: none;
    border-bottom: 1px solid rgba(201, 168, 76, .16);
    padding-bottom: 2rem;
  }

  .auth-copy {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .auth-art-panel,
  .auth-form-panel {
    padding: 1.4rem;
  }

  .auth-demo-box {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-stat-strip {
    grid-template-columns: 1fr;
  }
}

/* ── Auth tab switch animation ── */
.auth-mode-tab {
  transition: background .22s ease, color .22s ease, transform .15s ease;
}
.auth-mode-tab:hover:not(.active) {
  color: var(--gold);
  transform: translateY(-1px);
}
.auth-mode-tab.active {
  box-shadow: 0 2px 12px rgba(201,168,76,.15);
}

/* ── Auth form panel entrance ── */
.auth-form-panel {
  animation: authFormIn .38s cubic-bezier(.22, 1, .36, 1);
}
@keyframes authFormIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: none; }
}

/* ── Auth art panel depth ── */
.auth-art-panel {
  background: linear-gradient(145deg, rgba(12,14,26,.7), rgba(18,22,40,.5));
}

/* ── Auth orbit glow ring ── */
.auth-orbit-outer {
  box-shadow: 0 0 20px rgba(201,168,76,.08) inset;
}
.auth-orbit-inner {
  box-shadow: 0 0 14px rgba(91,196,196,.08) inset;
}

/* ── Auth crest icon shimmer ── */
.auth-crest-core i {
  animation: iconPop 2s ease-in-out infinite alternate;
}
@keyframes iconPop {
  from { filter: drop-shadow(0 0 4px rgba(201,168,76,.3)); }
  to   { filter: drop-shadow(0 0 14px rgba(201,168,76,.7)); }
}

/* ── Feature chip hover ── */
.auth-feature-chip {
  transition: border-color .2s, transform .2s, background .2s;
}
.auth-feature-chip:hover {
  border-color: rgba(91,196,196,.3);
  transform: translateX(4px);
  background: rgba(91,196,196,.05);
}

/* ── Prompt item icon color glow ── */
.auth-prompt-item i {
  transition: filter .2s;
}
.auth-prompt-panel:hover .auth-prompt-item i {
  filter: drop-shadow(0 0 5px rgba(91,196,196,.5));
}
