/* ═══════════════════════════════════════════════════════════════
   NEXORA Enterprise — Auth Page Styles
   ═══════════════════════════════════════════════════════════════ */

.auth {
  display: flex;
  min-height: 100vh;
  direction: rtl;
}

.auth-hero {
  flex: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-16);
  position: relative;
  overflow: hidden;
}

.auth-hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  top: -100px;
  left: -100px;
}

.auth-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -80px;
  right: -80px;
}

.auth-hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}

.auth-hero h1 i { color: var(--gold); }

.auth-hero p {
  font-size: var(--text-xl);
  opacity: 0.85;
  max-width: 400px;
  line-height: var(--lh-relaxed);
  position: relative;
  z-index: 1;
}

.auth-hero .features-list {
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: relative;
  z-index: 1;
}

.auth-hero .features-list .feature-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-lg);
  opacity: 0.9;
}

.auth-hero .features-list .feature-item i {
  color: var(--gold);
  font-size: 20px;
  width: 24px;
}

.auth-panel-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8);
  background: var(--bg);
}

.auth-panel {
  width: 100%;
  max-width: 420px;
}

.auth-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  padding: var(--sp-1);
  margin-bottom: var(--sp-8);
}

.auth-tab {
  flex: 1;
  padding: var(--sp-3);
  text-align: center;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: var(--fw-semibold);
  font-size: var(--text-md);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease);
}

.auth-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
}

.auth-title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-2);
}

.auth-sub {
  color: var(--text-muted);
  font-size: var(--text-md);
  margin-bottom: var(--sp-6);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-form .form-group { margin-bottom: var(--sp-4); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-demo {
  background: var(--primary-bg-light);
  border: 1px solid var(--primary-bg);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-5);
}

.auth-demo p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}

.auth-demo code {
  display: block;
  background: var(--surface);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--primary);
  margin-top: var(--sp-1);
}

.auth-back {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  z-index: 10;
}

@media (max-width: 900px) {
  .auth-hero { display: none; }
  .auth-panel-wrap { padding: var(--sp-4); }
}
