.auth-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0f2744 0%, #1e3a5f 50%, #163352 100%);
}

.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: authGridDrift 28s linear infinite;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: authOrbFloat 12s ease-in-out infinite alternate;
}

.auth-orb--1 {
  width: 280px;
  height: 280px;
  background: #22c55e;
  top: 8%;
  left: 12%;
}

.auth-orb--2 {
  width: 220px;
  height: 220px;
  background: #0ea5e9;
  bottom: 10%;
  right: 8%;
  animation-delay: -4s;
}

.auth-orb--3 {
  width: 160px;
  height: 160px;
  background: #a78bfa;
  top: 42%;
  right: 30%;
  animation-delay: -7s;
}

@keyframes authOrbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, -18px) scale(1.08); }
}

@keyframes authGridDrift {
  from { transform: rotate(0deg); }
  to { transform: rotate(6deg); }
}

.auth-wrap {
  width: min(920px, 96vw);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}

.auth-single {
  max-width: 420px;
  margin: 0 auto;
}

.auth-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .auth-dual {
    grid-template-columns: 1fr;
  }
}

.auth-card--focus {
  box-shadow: 0 24px 56px rgba(14, 165, 233, 0.28);
  outline: 2px solid rgba(14, 165, 233, 0.35);
}

.auth-card__badge--admin {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.auth-card__badge--teacher {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.auth-card .select2-container--bootstrap-5 .select2-selection {
  min-height: 2.5rem;
}

.auth-card .select2-container--open {
  z-index: 20;
}

.auth-card--animated {
  position: relative;
}

.auth-card__badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
  animation: authBadgePulse 2.8s ease-in-out infinite;
}

@keyframes authBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.btn-google {
  background: #fff;
  border: 1px solid #dbe3ee;
  color: #1e293b;
  font-weight: 600;
}

.btn-google:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
