/* ============================================
   Re-Kit Auth Pages CSS
   ============================================ */

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

/* ---- Left Panel ---- */
.auth-left {
  flex: 0 0 420px;
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
[dir="rtl"] .auth-left { border-right: none; border-left: 1px solid var(--border); }

.auth-left::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(87,242,135,0.08), transparent 70%);
  pointer-events: none;
}

.auth-left-content { text-align: center; position: relative; z-index: 1; }

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 40px;
}
.auth-logo img { height: 40px; }

.auth-mascot {
  width: 160px;
  margin: 0 auto 20px;
  animation: float-mascot 4s ease-in-out infinite;
}
.auth-left-hero h2 { font-size: 1.6rem; margin-bottom: 10px; }
.auth-left-hero p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 24px; }

.auth-left-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.auth-badge {
  padding: 5px 12px;
  background: var(--primary-glow);
  border: 1px solid rgba(87,242,135,0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

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

.auth-top-bar {
  position: absolute;
  top: 20px; right: 24px;
  display: flex;
  gap: 10px;
}
[dir="rtl"] .auth-top-bar { right: auto; left: 24px; }

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

.auth-header { margin-bottom: 28px; }
.auth-header h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-header p { color: var(--text-secondary); font-size: 0.9rem; }
.auth-header p a { color: var(--primary); font-weight: 600; }
.auth-header p a:hover { text-decoration: underline; }

.auth-form { display: flex; flex-direction: column; gap: 0; }

.eye-toggle {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.5;
  transition: opacity var(--transition);
}
[dir="rtl"] .eye-toggle { left: auto; right: 14px; }
.eye-toggle:hover { opacity: 1; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 16px 0;
}
.auth-divider::before,.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.demo-login { text-align: center; }
.demo-login p { color: var(--text-muted); font-size: 0.83rem; margin-bottom: 8px; }

/* ---- Step Progress ---- */
.step-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}
.step-dot.active { border-color: var(--primary); color: var(--primary); }
.step-dot.done {
  background: var(--primary);
  border-color: var(--primary);
  color: #0A0F1C;
}
.step-line { flex: 1; height: 2px; background: var(--border); border-radius: 1px; }
.step-line.done { background: var(--primary); }

/* ---- Step Panels ---- */
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeUp 0.3s ease; }

.school-type-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.school-type-card {
  padding: 16px 12px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.85rem;
  font-weight: 500;
}
.school-type-card:hover { border-color: rgba(87,242,135,0.3); }
.school-type-card.selected {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--primary);
}
.school-type-card .type-icon { font-size: 1.8rem; margin-bottom: 6px; display: block; }

.auth-footer-note {
  position: absolute;
  bottom: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right { padding: 80px 20px 60px; }
}
@media (max-width: 480px) {
  .school-type-grid { grid-template-columns: 1fr 1fr; }
}
