/* ============================================
   Auth Pages (login / register / verifyins)
   Centered split card layout
   ============================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg-body);
  position: relative;
  overflow: hidden;
}

/* Background decoration */
.auth-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08), transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.06), transparent 70%);
  bottom: -150px;
  left: -100px;
  pointer-events: none;
}

/* Card container */
.auth-card {
  display: flex;
  width: 100%;
  max-width: 960px;
  min-height: 560px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: scaleIn 0.5s var(--ease);
  position: relative;
  z-index: 1;
}

/* Left brand panel */
.auth-brand {
  flex: 0 0 400px;
  background: var(--primary-gradient);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.auth-brand::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -60px;
  right: -80px;
}
.auth-brand::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -40px;
  left: -50px;
}

.auth-brand-logo {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.auth-brand h2 {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.auth-brand p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Decorative floating shapes */
.auth-brand .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: #fff;
}
.auth-brand .shape-1 { width: 80px; height: 80px; top: 20%; left: 10%; animation: float 5s ease-in-out infinite; }
.auth-brand .shape-2 { width: 40px; height: 40px; bottom: 30%; right: 15%; animation: float 7s ease-in-out infinite 1s; }
.auth-brand .shape-3 { width: 60px; height: 60px; top: 60%; left: 50%; animation: float 6s ease-in-out infinite 0.5s; }

/* Right form panel */
.auth-form {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.auth-form .subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

/* Auth tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 0.75rem 0;
  text-align: center;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--t-fast);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.auth-tab:hover { color: var(--text-body); }
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Links */
.auth-form .auth-link {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}
.auth-form .auth-link:hover { color: var(--primary-hover); }

/* Steps indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 2px solid var(--border);
  transition: all var(--t-normal);
  position: relative;
  z-index: 1;
}
.step-dot.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}
.step-dot.done {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.step-line {
  width: 60px;
  height: 2px;
  background: var(--border);
  transition: background var(--t-normal);
}
.step-line.done { background: var(--success); }

/* Responsive */
@media (max-width: 767.98px) {
  .auth-card {
    flex-direction: column;
    max-width: 480px;
    min-height: auto;
  }
  .auth-brand {
    flex: 0 0 auto;
    padding: 2rem;
    text-align: center;
  }
  .auth-brand h2 { font-size: 1.25rem; }
  .auth-brand p { display: none; }
  .auth-brand .shape { display: none; }
  .auth-form { padding: 2rem; }
}
