/* NQXX Auth pages — login / signup */
.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
}

.auth-inner {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.auth-left h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.auth-left h1 span {
  background: linear-gradient(135deg, var(--accent2), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-left p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 440px;
}

.auth-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}

.auth-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
  padding: 0.35rem;
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.25s;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.auth-form .sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.auth-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 0.5rem;
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-submit:hover { transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 1.25rem 0;
  position: relative;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.8rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-google:hover { border-color: var(--accent2); background: rgba(108,71,255,0.08); }
.btn-google svg { width: 18px; height: 18px; }

.auth-switch {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}
.auth-switch button {
  background: none;
  border: none;
  color: var(--accent2);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
}

.auth-msg {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}
.auth-msg.error { display: block; background: rgba(255,107,107,0.12); border: 1px solid rgba(255,107,107,0.3); color: #ff8a8a; }
.auth-msg.success { display: block; background: rgba(0,212,160,0.1); border: 1px solid rgba(0,212,160,0.3); color: var(--teal); }
.auth-msg.config { display: block; background: rgba(245,197,24,0.1); border: 1px solid rgba(245,197,24,0.3); color: var(--gold); }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.form-row a { color: var(--accent2); text-decoration: none; }
.form-row label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }

.join-banner {
  background: rgba(108,71,255,0.12);
  border: 1px solid rgba(108,71,255,0.28);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--accent2);
  margin-bottom: 1rem;
  text-align: center;
}

/* Auth visual — compact galaxy */
.auth-visual {
  position: relative;
  height: 420px;
}

.auth-visual .artifact-scene { height: 100%; }
.auth-visual .artifact-ring.r1 { width: 320px; height: 320px; }
.auth-visual .artifact-ring.r2 { width: 250px; height: 250px; }
.auth-visual .ai-core { width: 110px; height: 110px; }
.auth-visual .brand-orb { font-size: 1.15rem; }

footer.auth-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 5%;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .auth-inner { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .nav-links { display: none; }
}