/* ============================================================
   OKAKA FOOTBALL ACADEMY — AUTHENTICATION PAGES
   Login & Registration premium split-screen design.
   Scoped to body.auth-page — no impact on other pages.
   ============================================================ */

body.auth-page {
  padding-top: 0;
  background: var(--white);
}

/* Site chrome is not part of the focused auth experience */
body.auth-page .main-header,
body.auth-page .main-footer,
body.auth-page .back-to-top,
body.auth-page #scroll-progress,
body.auth-page .mobile-overlay,
body.auth-page .mobile-menu,
body.auth-page .search-overlay {
  display: none !important;
}

/* ---- Shell ---- */
.auth-shell {
  display: flex;
  min-height: 100vh;
  background: var(--white);
  overflow-x: hidden;
}

.auth-shell.auth-shell-flip { flex-direction: row-reverse; }

/* ---- Visual panel (dark green football imagery) ---- */
.auth-visual {
  position: relative;
  flex: 1 1 55%;
  min-height: 100vh;
  overflow: hidden;
}

.auth-visual-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(160deg, rgba(6, 32, 18, 0.84) 0%, rgba(13, 79, 43, 0.78) 45%, rgba(8, 20, 12, 0.95) 100%);
  z-index: 1;
}

.auth-visual::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(120% 90% at 18% 8%, rgba(255, 255, 255, 0.07) 0%, transparent 55%);
  z-index: 1;
}

.auth-visual-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 54px 64px;
  color: var(--white);
  animation: authFadeUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-brand-logo {
  height: 82px;
  width: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.auth-brand-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 5px;
  color: #ffffff;
}

.auth-brand-sub {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-top: 5px;
}

.auth-visual-mid {
  max-width: 460px;
  margin: auto 0;
  padding: 48px 0;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(212, 168, 75, 0.13);
  border: 1px solid rgba(212, 168, 75, 0.32);
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.auth-badge .badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 10px rgba(212, 168, 75, 0.8);
}

.auth-visual-title {
  color: #ffffff;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.auth-visual-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 26px;
}

.auth-points {
  display: grid;
  gap: 12px;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.auth-points li i {
  color: var(--accent-light);
  margin-top: 3px;
  font-size: 13px;
}

.auth-visual-foot {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.auth-visual-foot-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
}

.auth-visual-foot-item i { color: var(--accent-light); }

/* ---- Form panel ---- */
.auth-panel {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 56px 40px;
}

.auth-panel-inner {
  width: 100%;
  max-width: 430px;
  animation: authFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-visual-content,
  .auth-panel-inner { animation: none; }
}

/* ---- Registration panel: white card with logo on top ---- */
.auth-panel-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 38px;
}

.auth-card-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 26px;
}

.auth-card-brand .auth-brand-logo { height: 72px; }

.auth-card-brand .auth-brand-name {
  color: var(--primary-dark);
  font-size: 20px;
  letter-spacing: 4px;
  margin-top: 10px;
}

.auth-card-brand .auth-brand-sub {
  color: var(--primary);
  letter-spacing: 3px;
}

/* ---- Typography ---- */
.auth-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.auth-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--gray);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ---- Alerts ---- */
.auth-alert {
  display: none;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.auth-alert.show { display: block; }

.auth-alert-danger {
  background: #FDEBEC;
  color: #B3261E;
  border: 1px solid rgba(179, 38, 30, 0.18);
}

.auth-alert-success {
  background: #E7F6EC;
  color: var(--primary-dark);
  border: 1px solid rgba(27, 122, 61, 0.2);
}

.auth-alert a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
}

/* ---- Form ---- */
.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.auth-field-full { grid-column: 1 / -1; }

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 8px;
}

.auth-field label .auth-req { color: #C62828; }

.auth-input { position: relative; }

.auth-input > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
  transition: color 0.25s ease;
}

.auth-input input {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--light-gray);
  border-radius: 12px;
  background: var(--off-white);
  padding: 0 46px;
  font-size: 14.5px;
  color: var(--dark-gray);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.auth-input input::placeholder { color: #A8AEB5; }

.auth-input input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(27, 122, 61, 0.12);
}

.auth-input:focus-within > i { color: var(--primary); }

.auth-password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--gray);
  font-size: 14px;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.auth-password-toggle:hover { color: var(--primary); background: rgba(27, 122, 61, 0.08); }

.auth-input input[type="date"] { padding-right: 16px; color: #555; }

/* ---- Remember / links row ---- */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--dark-gray);
  user-select: none;
  -webkit-user-select: none;
}

.auth-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
}

.auth-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ---- Terms ---- */
.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--dark-gray);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.auth-terms input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex: 0 0 auto;
  cursor: pointer;
}

.auth-terms a { color: var(--primary); font-weight: 700; }
.auth-terms a:hover { text-decoration: underline; }

/* ---- reCAPTCHA ---- */
.auth-recaptcha { margin-top: 2px; min-height: 78px; }

/* ---- Submit button ---- */
.auth-submit {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(27, 122, 61, 0.3);
  transition: var(--transition);
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(27, 122, 61, 0.4);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
}

.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ---- Footer link ---- */
.auth-footer {
  margin-top: 26px;
  text-align: center;
  font-size: 14px;
  color: var(--gray);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 800;
}

.auth-footer a:hover { text-decoration: underline; }

/* ---- Responsive: tablet ---- */
@media (max-width: 991.98px) {
  .auth-shell,
  .auth-shell.auth-shell-flip { flex-direction: column; }

  .auth-visual {
    flex: none;
    min-height: 0;
    height: 260px;
  }

  .auth-visual-content {
    min-height: 0;
    padding: 26px 34px;
    justify-content: flex-start;
  }

  .auth-brand-logo { height: 54px; }
  .auth-brand-name { font-size: 20px; letter-spacing: 4px; }

  .auth-visual-mid { padding: 22px 0 0; }

  .auth-visual-title { font-size: 1.45rem; margin-bottom: 0; }
  .auth-badge { margin-bottom: 14px; }
  .auth-visual-text,
  .auth-points,
  .auth-visual-foot { display: none; }

  .auth-panel { padding: 46px 32px 60px; }
  .auth-panel-inner { max-width: 460px; }
}

/* ---- Responsive: mobile ---- */
@media (max-width: 575.98px) {
  .auth-visual { height: 205px; }

  .auth-visual-content { padding: 18px 22px; }

  .auth-brand-logo { height: 44px; }
  .auth-brand-name { font-size: 17px; letter-spacing: 3px; }
  .auth-brand-sub { font-size: 9px; letter-spacing: 2.5px; }

  .auth-badge { font-size: 10px; padding: 6px 12px; margin-bottom: 12px; letter-spacing: 2px; }
  .auth-visual-title { font-size: 1.12rem; }

  .auth-panel { padding: 34px 20px 46px; }

  .auth-form-grid { grid-template-columns: 1fr; }

  .auth-input input { height: 50px; }
  .auth-submit { height: 52px; }
  .auth-card-brand .auth-brand-logo { height: 56px; }

  .auth-recaptcha .g-recaptcha {
    transform: scale(0.85);
    transform-origin: left top;
    margin-bottom: -16px;
  }
}
