/* ====================================
   ABCD AUTH PAGES - REDESIGNED
==================================== */

.auth-body {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  font-family: 'Inter', sans-serif;
}

.auth-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ===================== LEFT PANEL ===================== */
.auth-left {
  width: 45%;
  background: #CC0000;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 50px 40px;
}

/* Animated Africa map SVG background */
.auth-left-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-left-bg svg {
  position: absolute;
  bottom: -40px;
  right: -60px;
  width: 420px;
  opacity: 0.12;
  animation: floatAfrica 6s ease-in-out infinite;
}

@keyframes floatAfrica {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* Animated circles */
.auth-left-bg .circle1,
.auth-left-bg .circle2,
.auth-left-bg .circle3 {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  animation: pulseCircle 4s ease-in-out infinite;
}

.auth-left-bg .circle1 { width: 300px; height: 300px; bottom: 60px; right: 20px; animation-delay: 0s; }
.auth-left-bg .circle2 { width: 220px; height: 220px; bottom: 100px; right: 60px; animation-delay: 0.8s; }
.auth-left-bg .circle3 { width: 140px; height: 140px; bottom: 140px; right: 100px; animation-delay: 1.6s; }

@keyframes pulseCircle {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.05); opacity: 0.25; }
}

/* Floating dots */
.auth-left-bg .dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  animation: floatDot linear infinite;
}

.auth-left-bg .dot:nth-child(1) { width: 6px; height: 6px; top: 15%; left: 10%; animation-duration: 8s; animation-delay: 0s; }
.auth-left-bg .dot:nth-child(2) { width: 4px; height: 4px; top: 30%; left: 80%; animation-duration: 10s; animation-delay: 1s; }
.auth-left-bg .dot:nth-child(3) { width: 8px; height: 8px; top: 60%; left: 20%; animation-duration: 7s; animation-delay: 2s; }
.auth-left-bg .dot:nth-child(4) { width: 5px; height: 5px; top: 75%; left: 60%; animation-duration: 9s; animation-delay: 0.5s; }
.auth-left-bg .dot:nth-child(5) { width: 3px; height: 3px; top: 45%; left: 40%; animation-duration: 11s; animation-delay: 1.5s; }

@keyframes floatDot {
  0%, 100% { transform: translateY(0px); opacity: 0.3; }
  50% { transform: translateY(-15px); opacity: 0.7; }
}

.auth-left-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Logo */
.auth-logo {
  display: flex;
  align-items: center;
  margin-bottom: auto;
  padding-bottom: 20px;
}

.auth-logo-img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Main content */
.auth-left-main {
  margin-bottom: 36px;
}

.auth-left-main h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 14px;
}

.auth-left-main h2 .accent {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-left-main p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

/* Stats */
.auth-left-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.auth-stat strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.auth-stat span {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
  display: block;
}

/* Benefits */
.join-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.benefit-item i {
  color: rgba(255,255,255,0.95);
  font-size: 13px;
  flex-shrink: 0;
}

/* Mini globe */
.auth-left-globe { display: none; }

/* ===================== RIGHT PANEL ===================== */
.auth-right {
  width: 55%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 70px;
  overflow-y: auto;
  position: relative;
  background: #ffffff;
}

.auth-back {
  position: absolute;
  top: 28px; left: 40px;
  color: rgba(17,24,39,0.45);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

.auth-back:hover { color: #CC0000; }

.auth-form-wrap {
  width: 100%;
  max-width: 480px;
}

.auth-form-header {
  margin-bottom: 32px;
}

.auth-form-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #111827;
}

.auth-form-header p {
  color: rgba(17,24,39,0.5);
  font-size: 14px;
}

/* ===================== FORM FIELDS ===================== */
.auth-form-group {
  margin-bottom: 20px;
}

.auth-form-group label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.auth-form-group label i {
  color: #CC0000;
  font-size: 11px;
}

.auth-form-group input,
.auth-form-group select {
  width: 100%;
  padding: 13px 16px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  color: #111827;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.25s;
}

.auth-form-group input:focus,
.auth-form-group select:focus {
  border-color: #CC0000;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(204,0,0,0.08);
}

.auth-form-group input::placeholder { color: #9ca3af; }
.auth-form-group select option { background: #fff; color: #111827; }

/* Password toggle */
.input-wrap { position: relative; }
.input-wrap input { padding-right: 46px; }

.toggle-pw {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s;
}
.toggle-pw:hover { color: #CC0000; }

/* Auth options row */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}

.remember-me input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: #CC0000;
}

.forgot-link {
  font-size: 13px;
  color: #CC0000;
  text-decoration: none;
  transition: opacity 0.2s;
}
.forgot-link:hover { opacity: 0.7; }

/* Submit button */
.auth-btn {
  width: 100%;
  padding: 15px 20px;
  background: #CC0000;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(204,0,0,0.3);
}

.auth-btn:hover:not(:disabled) {
  background: #aa0000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(204,0,0,0.4);
}

.auth-btn:disabled { opacity: 0.8; cursor: default; }

/* Divider */
.auth-divider {
  text-align: center;
  position: relative;
  margin: 22px 0;
  color: #d1d5db;
  font-size: 12px;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e5e7eb;
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* OAuth */
.oauth-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.oauth-btn {
  padding: 10px 12px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.25s;
}

.oauth-btn:hover {
  border-color: #CC0000;
  color: #CC0000;
  background: #fff5f5;
}

/* 2-col form row */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Terms */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  margin-bottom: 20px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  line-height: 1.5;
}

.terms-check input { accent-color: #CC0000; margin-top: 2px; flex-shrink: 0; }
.terms-check a { color: #CC0000; text-decoration: none; }
.terms-check a:hover { text-decoration: underline; }

/* Footer text */
.auth-footer-text {
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
  margin-top: 20px;
}

.auth-footer-text a {
  color: #CC0000;
  text-decoration: none;
  font-weight: 600;
}
.auth-footer-text a:hover { text-decoration: underline; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .auth-split { flex-direction: column; }
  .auth-left { width: 100%; padding: 30px; min-height: 300px; }
  .auth-right { width: 100%; padding: 30px 24px; }
  .auth-back { position: relative; top: auto; left: auto; margin-bottom: 20px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .oauth-row { grid-template-columns: 1fr; }
}

/* ===== BIGGER LOGO ===== */
.auth-logo-img {
  height: 90px !important;
  width: auto;
  filter: none !important;
  animation: floatLogo 3s ease-in-out infinite;
  object-fit: contain;
}

/* ===== LINE BY LINE ANIMATION ===== */
.auth-left-main h2,
.auth-left-main h2 span,
.auth-left-main p,
.auth-left-stats,
.auth-stat,
.join-benefits .benefit-item {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.6s ease forwards;
}

.auth-left-main h2        { animation-delay: 0.2s; }
.auth-left-main h2 span   { animation-delay: 0.35s; }
.auth-left-main p         { animation-delay: 0.5s; }
.auth-left-stats          { animation-delay: 0.65s; }

.auth-stat:nth-child(1)   { animation-delay: 0.75s; }
.auth-stat:nth-child(2)   { animation-delay: 0.9s; }
.auth-stat:nth-child(3)   { animation-delay: 1.05s; }

.join-benefits .benefit-item:nth-child(1) { animation-delay: 0.7s; }
.join-benefits .benefit-item:nth-child(2) { animation-delay: 0.85s; }
.join-benefits .benefit-item:nth-child(3) { animation-delay: 1.0s; }
.join-benefits .benefit-item:nth-child(4) { animation-delay: 1.15s; }
.join-benefits .benefit-item:nth-child(5) { animation-delay: 1.3s; }

@keyframes slideUpFade {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Logo animate in too */
.auth-logo {
  opacity: 0;
  animation: slideUpFade 0.7s ease 0.05s forwards;
}

/* ===== RIGHT PANEL FORM ANIMATE IN ===== */
.auth-form-header h1,
.auth-form-header p,
.auth-form-group,
.auth-options,
.auth-btn,
.auth-divider,
.oauth-row,
.auth-footer-text,
.terms-check {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.5s ease forwards;
}

.auth-form-header h1       { animation-delay: 0.15s; }
.auth-form-header p        { animation-delay: 0.25s; }

.auth-form-group:nth-child(1) { animation-delay: 0.35s; }
.auth-form-group:nth-child(2) { animation-delay: 0.45s; }
.auth-form-group:nth-child(3) { animation-delay: 0.55s; }
.auth-form-group:nth-child(4) { animation-delay: 0.65s; }
.auth-form-group:nth-child(5) { animation-delay: 0.75s; }
.auth-form-group:nth-child(6) { animation-delay: 0.85s; }

.form-row-2 .auth-form-group:nth-child(1) { animation-delay: 0.4s; }
.form-row-2 .auth-form-group:nth-child(2) { animation-delay: 0.5s; }

.auth-options       { animation-delay: 0.9s; }
.terms-check        { animation-delay: 0.9s; }
.auth-btn           { animation-delay: 1.0s; }
.auth-divider       { animation-delay: 1.1s; }
.oauth-row          { animation-delay: 1.2s; }
.auth-footer-text   { animation-delay: 1.3s; }

/* ===== LOGO WITH TEXT ===== */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: auto;
  padding-bottom: 20px;
}

.auth-logo-img {
  height: 70px !important;
  width: auto;
  object-fit: contain;
  filter: none !important;
  animation: floatLogo 3s ease-in-out infinite;
}

.auth-logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auth-logo-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1;
}

.auth-logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.5;
  max-width: 160px;
}
