/* =============================================
   RebotDost - Auth (Login/Register) Styles
   ============================================= */

:root {
  --primary: #00d4ff;
  --accent: #7b2ff7;
  --success: #00e676;
  --danger: #ff4757;
  --bg-dark: #030712;
  --bg-card: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.08);
  --border-focus: rgba(0,212,255,0.5);
  --text-primary: #f0f9ff;
  --text-secondary: rgba(255,255,255,0.6);
  --text-muted: rgba(255,255,255,0.35);
  --font: 'Inter', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

/* ---- Background ---- */
.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.auth-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb-a {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.12), transparent 70%);
  top: -100px; left: -100px;
}
.orb-b {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(123,47,247,0.15), transparent 70%);
  bottom: -100px; right: -100px;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ---- Layout ---- */
.auth-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ---- Left Panel ---- */
.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
  background: linear-gradient(135deg,
    rgba(0,212,255,0.06) 0%,
    rgba(123,47,247,0.08) 50%,
    rgba(0,0,0,0) 100%);
  border-right: 1px solid var(--border);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 3rem;
}
.brand-hex svg { width: 40px; height: 40px; }
.auth-brand span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}
.auth-brand span span { color: var(--primary); }
.auth-tagline {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 400px;
}
.auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.ab-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ab-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ab-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.ab-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.auth-live-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0,230,118,0.08);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  color: #00e676;
  width: fit-content;
}
.als-dot {
  width: 6px; height: 6px;
  background: #00e676;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

/* ---- Right Panel ---- */
.auth-right {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  flex-shrink: 0;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

/* ---- Tabs ---- */
.auth-tabs {
  display: flex;
  gap: 0.25rem;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 0.25rem;
  margin-bottom: 2rem;
}
.tab {
  flex: 1;
  padding: 0.6rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.tab.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}
.tab:not(.active):hover { color: var(--text-secondary); }

/* ---- Forms ---- */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}
.auth-form.active { display: flex; }
.auth-form h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.form-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: -0.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap svg:first-child {
  position: absolute;
  left: 0.875rem;
  width: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s;
}
.input-wrap input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 2.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
  transition: all 0.2s;
}
.input-wrap input::placeholder { color: var(--text-muted); }
.input-wrap input:focus {
  border-color: var(--border-focus);
  background: rgba(0,212,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
.input-wrap input:focus + .input-wrap svg:first-child,
.input-wrap input:focus ~ svg:first-child {
  color: var(--primary);
}
.eye-toggle {
  position: absolute;
  right: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
}
.eye-toggle svg { width: 16px; color: var(--text-muted); }
.eye-toggle:hover svg { color: var(--text-secondary); }
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -0.25rem 0;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 14px; height: 14px;
}
.forgot-link {
  font-size: 0.82rem;
  color: var(--primary);
  text-decoration: none;
}
.forgot-link:hover { opacity: 0.8; }
.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(0,212,255,0.25);
}
.btn-auth svg { width: 18px; transition: transform 0.2s; }
.btn-auth:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0,212,255,0.4);
}
.btn-auth:hover svg { transform: translateX(3px); }
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn-auth-admin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-auth-admin:hover {
  border-color: rgba(123,47,247,0.4);
  color: var(--accent-light, #a855f7);
  background: rgba(123,47,247,0.06);
}

/* ---- Plan Select ---- */
.plan-select-wrap label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.5rem;
}
.plan-options {
  display: flex;
  gap: 0.5rem;
}
.plan-opt {
  flex: 1;
  cursor: pointer;
}
.plan-opt input { display: none; }
.plan-opt span {
  display: block;
  padding: 0.6rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
  color: var(--text-secondary);
}
.plan-opt span small {
  display: block;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.2rem;
}
.plan-opt.selected span,
.plan-opt input:checked + span {
  border-color: var(--primary);
  background: rgba(0,212,255,0.08);
  color: var(--primary);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right {
    width: 100%;
    padding: 1.5rem;
  }
}
