/* ============================================================
   3D VIP — Auth Pages (Login / Reset)
   ============================================================ */

/* ── Layout ──────────────────────────────────────────────── */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Left panel ──────────────────────────────────────────── */
.auth-left {
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 60px;
}

.auth-left-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.auth-glow-1 {
  width: 500px; height: 500px;
  background: rgba(255, 184, 0, 0.08);
  top: -100px; left: -100px;
}
.auth-glow-2 {
  width: 400px; height: 400px;
  background: rgba(255, 80, 0, 0.05);
  bottom: -50px; right: -50px;
}

.auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,184,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,184,0,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
}

.auth-left-content {
  position: relative;
  z-index: 2;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 64px;
}
.auth-logo span { color: var(--text-white); }

.auth-left-text h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-white);
}
.auth-left-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-light);
}
.auth-feature span {
  color: var(--success);
  font-weight: 700;
  font-size: 16px;
}

/* ── Right panel ─────────────────────────────────────────── */
.auth-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: var(--bg-deep);
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

/* ── Tabs ────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.auth-tab:hover { color: var(--text-white); }
.auth-tab.active {
  background: var(--bg-card);
  color: var(--text-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── Panel ───────────────────────────────────────────────── */
.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-header { margin-bottom: 28px; }
.auth-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-header p  { color: var(--text-muted); font-size: 15px; }

/* ── Password input ──────────────────────────────────────── */
.input-password-wrap {
  position: relative;
}
.input-password-wrap .form-input { padding-right: 48px; }

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.toggle-password:hover { color: var(--text-white); }

/* ── Forgot link ─────────────────────────────────────────── */
.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.forgot-link {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.forgot-link:hover { color: var(--gold-light); }

/* ── Error / Success ─────────────────────────────────────── */
.auth-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

.auth-success {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  color: var(--success);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.auth-success span { font-size: 24px; }
.auth-success strong { display: block; margin-bottom: 4px; }
.auth-success p { color: var(--text-muted); margin: 0; }

.hidden { display: none !important; }

/* ── Divider ─────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* ── Footer text ─────────────────────────────────────────── */
.auth-footer-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Btn spinner ─────────────────────────────────────────── */
.btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ── Back to site link ───────────────────────────────────── */
.back-to-site {
  position: absolute;
  top: 28px;
  left: 40px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.back-to-site:hover { color: var(--text-white); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left   { display: none; }
  .auth-right  { padding: 40px 24px; min-height: 100vh; }
  .back-to-site { top: 20px; left: 24px; }
}
