/* ============================================================
   LUMORA AI — Auth screens (login / register)
   ============================================================ */

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  z-index: 1;
}

.auth-aside {
  position: relative;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(800px 600px at 0% 0%, rgba(232,213,176,0.10), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(255,94,58,0.08), transparent 60%);
  overflow: hidden;
}

.auth-aside .quote {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 540px;
  color: var(--text);
}
.auth-aside .quote em {
  font-style: italic;
  background: linear-gradient(120deg, var(--champagne), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-aside .quote-byline {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Decorative orbital ring on the aside */
.auth-aside .orbit {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1px dashed rgba(232,213,176,0.18);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 60s linear infinite;
  pointer-events: none;
}
.auth-aside .orbit::before,
.auth-aside .orbit::after {
  content: "";
  position: absolute; width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 30px rgba(232,213,176,0.7);
}
.auth-aside .orbit::before { top: -7px; left: 50%; transform: translateX(-50%); }
.auth-aside .orbit::after  {
  bottom: -7px; right: 28%;
  background: var(--coral);
  box-shadow: 0 0 30px rgba(255,94,58,0.7);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
  border-radius: var(--r-xl);
  background: var(--glass-2);
  border: 1px solid var(--line);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  margin: 4px 0 4px;
  letter-spacing: -0.01em;
}
.auth-card .sub { color: var(--text-dim); margin-bottom: 24px; font-size: 14px; }

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

.divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-mute);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  margin: 18px 0;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.alt-link { font-size: 14px; color: var(--text-dim); text-align: center; }
.alt-link a { color: var(--champagne); }
.alt-link a:hover { text-decoration: underline; }

.error-box {
  border: 1px solid rgba(255,94,58,0.45);
  background: rgba(255,94,58,0.10);
  color: #ffd6c9;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
}

@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 24px 18px; }
  .auth-card { padding: 28px 22px; }
}

/* ----------------------------------------------------
   Test Mode block
   ---------------------------------------------------- */
.test-mode-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed rgba(255, 94, 58, 0.3);
}
.test-mode-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--coral);
}
.test-mode-divider::before,
.test-mode-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 94, 58, 0.2);
}
.test-mode-divider span {
  font-weight: 600;
  text-transform: uppercase;
}
.test-mode-hint {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}
.test-mode-hint code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--champagne);
}

/* ----------------------------------------------------
   JX ID Sign-in
   ---------------------------------------------------- */
.jx-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.jx-divider::before,
.jx-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.btn-jx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-jx:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px -8px rgba(99, 102, 241, 0.5);
}
.jx-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ----------------------------------------------------
   JX ID button
   ---------------------------------------------------- */
.btn-jx {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid rgba(99, 102, 241, 0.5);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
  margin-bottom: 20px;
  transition: all 0.2s ease;
}
.btn-jx:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #7c7ff5 0%, #6366f1 100%);
}
.btn-jx-icon {
  display: inline-block;
  font-size: 16px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* ----------------------------------------------------
   OAuth provider buttons (JX / Google / Discord)
   ---------------------------------------------------- */
.oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.btn-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 12px;
  cursor: pointer;
  transition: all 200ms ease;
  border: 1px solid transparent;
  text-decoration: none;
}
.oauth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.btn-oauth.btn-jx {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}
.btn-oauth.btn-jx:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4); }

.btn-oauth.btn-google {
  background: #fff;
  color: #1f1f1f;
  border-color: #d8d8d8;
}
.btn-oauth.btn-google:hover { background: #f8f8f8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }

.btn-oauth.btn-discord {
  background: #5865F2;
  color: #fff;
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.2);
}
.btn-oauth.btn-discord:hover { background: #4752c4; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(88, 101, 242, 0.35); }
