/* ══════════════════════════════════════════════════════════════════
   login.css  |  Clubs Portal Login Page
   ══════════════════════════════════════════════════════════════════ */

html, body { height: 100%; overflow: hidden; }
@media (max-width: 767px) { html, body { overflow: auto; } }

/* ── Split layout: form LEFT, brand RIGHT ── */
.lp-layout {
  display: flex;
  height: 100dvh;
  overflow: hidden;
  /* rp-side (form) comes first in HTML, lp-side (brand) second */
}

/* ════════════════════════════════════
   LEFT — FORM PANEL  (.rp-side)
════════════════════════════════════ */
.rp-side {
  flex: 0 0 38%;
  width: 38%;
  background: linear-gradient(145deg, #f0f4ff 0%, #e8f0fe 50%, #f5f0ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 24px;
}
@media (max-width: 767px) {
  .rp-side { flex: 1; width: 100%; }
}

.rp-form-wrap { width: min(420px, 100%); position: relative; z-index: 1; }

/* Decorative floating boxes */
.rp-deco { position: absolute; pointer-events: none; z-index: 0; }
.rp-deco-1 {
  width: 180px; height: 180px; top: -55px; right: -45px;
  background: linear-gradient(135deg, rgba(97,185,240,.22) 0%, rgba(97,185,240,.08) 100%);
  border: 2px solid rgba(97,185,240,.30); border-radius: 24px;
  transform: rotate(18deg);
}
.rp-deco-2 {
  width: 120px; height: 120px; bottom: -40px; left: -30px;
  background: linear-gradient(135deg, rgba(255,108,0,.14) 0%, rgba(255,146,64,.06) 100%);
  border: 2px solid rgba(255,108,0,.20); border-radius: 18px; transform: rotate(-18deg);
}
.rp-deco-3 {
  width: 80px; height: 80px; top: 22px; left: 18px;
  background: linear-gradient(135deg, rgba(97,185,240,.16) 0%, rgba(97,185,240,.05) 100%);
  border: 2px solid rgba(97,185,240,.22); border-radius: 14px; transform: rotate(12deg);
}
.rp-deco-4 {
  width: 50px; height: 50px; bottom: 40px; right: 28px;
  background: linear-gradient(135deg, rgba(0,55,123,.10) 0%, rgba(0,55,123,.04) 100%);
  border: 2px solid rgba(0,55,123,.14); border-radius: 10px; transform: rotate(35deg);
}
.rp-deco-5 {
  width: 100px; height: 100px; top: 44%; right: -25px;
  background: linear-gradient(135deg, rgba(148,163,184,.14) 0%, rgba(148,163,184,.05) 100%);
  border: 2px solid rgba(148,163,184,.20); border-radius: 18px; transform: rotate(-8deg);
}
.rp-deco-6 {
  width: 40px; height: 40px; top: 38%; left: 16px;
  background: linear-gradient(135deg, rgba(255,108,0,.12) 0%, rgba(255,146,64,.05) 100%);
  border: 2px solid rgba(255,108,0,.18); border-radius: 9px; transform: rotate(22deg);
}

/* Mobile logo */
.rp-mob-logo { display: none; text-align: center; margin-bottom: 28px; }
.rp-mob-logo img { height: 44px; }
@media (max-width: 767px) { .rp-mob-logo { display: block; } }

/* ════════════════════════════════════
   RIGHT — BRAND PANEL  (.lp-side)
════════════════════════════════════ */
.lp-side {
  flex: 1;
  background: linear-gradient(155deg, #001230 0%, #002575 55%, #001840 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;   /* keeps the inner block centered */
  padding: 60px 64px;
  flex-shrink: 0;
}

.lp-side-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* ← LEFT-align logo, heading, pills, back link */
  text-align: left;          /* ← left text */
}

.lp-tagline {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 32px;
  text-align: left;          /* ← left text */
}

/* pills row — left-aligned to match content */
.lp-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 40px;
  justify-content: flex-start;  /* ← left-align pills */
}

.lp-logo-link { display: inline-block; margin-bottom: 32px; }
.lp-logo-img  { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .9; }

.lp-heading {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}
.lp-heading-clubs {
  color: #61B9F0;
}

.lp-tagline {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 32px;
  text-align: left;
}

/* Stat pills — horizontal row like the image */
.lp-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 40px;
}
.lp-stat-item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1rem;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  font-size: .82rem;
  color: rgba(255,255,255,.80);
  white-space: nowrap;
}
.lp-stat-item i { color: #FF6C00; font-size: .85rem; }

/* Security tips */
.lp-tips { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 40px; }
.lp-tip-item {
  display: flex; align-items: center; gap: .65rem;
  font-size: .84rem; color: rgba(255,255,255,.65);
}
.lp-tip-item i { color: #4ade80; font-size: .82rem; flex-shrink: 0; }

/* Back link */
.lp-back-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.45);
  text-decoration: none; transition: color .18s;
}
.lp-back-link:hover { color: #fff; }

/* Decorative blobs */
.lp-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.lp-orb-1 {
  width: 420px; height: 420px; top: -140px; right: -100px;
  background: radial-gradient(circle, rgba(97,185,240,.09) 0%, transparent 70%);
}
.lp-orb-2 {
  width: 280px; height: 280px; bottom: -80px; left: -60px;
  background: radial-gradient(circle, rgba(255,108,0,.07) 0%, transparent 70%);
}

/* ════════════════════════════════════
   FORM ELEMENTS
════════════════════════════════════ */
.rp-form-head { margin-bottom: 28px; }
.rp-form-title {
  font-family: 'Merriweather', serif;
  font-size: 1.55rem; font-weight: 800;
  color: #1a2740; margin-bottom: 6px; line-height: 1.2;
}
.rp-form-sub { font-size: .85rem; color: #6b7fa3; margin: 0; }

/* Fields */
.rp-field { margin-bottom: 20px; }
.rp-label {
  display: block; font-size: .78rem; font-weight: 700;
  color: #4a5a7a; margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .05em;
}
.rp-input-wrap { position: relative; display: flex; align-items: center; }
.rp-input-icon {
  position: absolute; left: 14px;
  color: #9aaac8; font-size: .95rem; pointer-events: none; z-index: 1;
}
.rp-input {
  width: 100%; padding: 11px 42px 11px 40px;
  background: #fff; border: 2px solid #dde4f0;
  border-radius: 10px; font-size: .9rem; color: #1a2740;
  transition: border-color .18s, box-shadow .18s;
  outline: none; font-family: inherit;
}
.rp-input::placeholder { color: #b0bcd4; }
.rp-input:focus { border-color: #00377B; box-shadow: 0 0 0 3px rgba(0,55,123,.1); }

.rp-pwd-toggle {
  position: absolute; right: 12px;
  background: none; border: none; cursor: pointer;
  color: #9aaac8; font-size: .95rem; padding: 4px;
  transition: color .15s; display: flex; align-items: center;
}
.rp-pwd-toggle:hover { color: #00377B; }

/* Remember me toggle */
.rp-row {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.rp-toggle-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .84rem; color: #4a5a7a; cursor: pointer; user-select: none;
}
.rp-toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.rp-toggle-track {
  position: relative; width: 42px; height: 24px;
  background: #cbd5e1; border-radius: 50px;
  transition: background .25s; flex-shrink: 0;
}
.rp-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: #fff;
  border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .25s;
}
.rp-toggle-input:checked + .rp-toggle-track { background: #00377B; }
.rp-toggle-input:checked + .rp-toggle-track .rp-toggle-thumb { transform: translateX(18px); }

/* Forgot password */
.rp-forgot-link {
  font-size: .82rem; font-weight: 700;
  color: #FF6C00; text-decoration: none; transition: opacity .18s;
}
.rp-forgot-link:hover { opacity: .75; }

/* Submit button */
.rp-submit-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #00377B 0%, #0055B3 100%);
  color: #fff; border: none; border-radius: 10px;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(0,55,123,.3);
  margin-top: 4px; margin-bottom: 20px; font-family: inherit;
}
.rp-submit-btn:hover { opacity: .92; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,55,123,.38); }
.rp-submit-btn:active { transform: scale(.98); }

/* Django-rendered inputs (change password) */
.rp-django-field { margin-bottom: 20px; }
.rp-django-field input[type="password"],
.rp-django-field input[type="text"] {
  width: 100%; padding: 11px 14px;
  background: #fff; border: 2px solid #dde4f0;
  border-radius: 10px; font-size: .9rem; color: #1a2740;
  transition: border-color .18s, box-shadow .18s;
  outline: none; font-family: inherit; display: block;
}
.rp-django-field input[type="password"]::placeholder,
.rp-django-field input[type="text"]::placeholder { color: #b0bcd4; }
.rp-django-field input[type="password"]:focus,
.rp-django-field input[type="text"]:focus {
  border-color: #00377B; box-shadow: 0 0 0 3px rgba(0,55,123,.1);
}
.rp-field-hint { font-size: .76rem; color: #8a9bbd; margin-top: 6px; line-height: 1.5; }

/* OTP inputs */
.rp-otp-group {
  display: flex; gap: .65rem; justify-content: center; margin: .5rem 0 1.75rem;
}
.rp-otp-input {
  width: 52px; height: 58px;
  text-align: center; font-size: 1.5rem; font-weight: 700;
  font-family: 'Merriweather', serif;
  color: #1a2740; background: #fff;
  border: 2px solid #dde4f0; border-radius: 12px;
  outline: none; transition: border-color .18s, box-shadow .18s;
  caret-color: #00377B;
}
.rp-otp-input:focus { border-color: #00377B; box-shadow: 0 0 0 3px rgba(0,55,123,.1); }
.rp-otp-input.filled { border-color: #00377B; background: #f0f5ff; }
@media (max-width: 400px) {
  .rp-otp-input { width: 42px; height: 50px; font-size: 1.25rem; }
  .rp-otp-group { gap: .4rem; }
}

/* Help text */
.rp-help { text-align: center; font-size: .8rem; color: #8a9bbd; margin: 0; }
.rp-help a { color: #00377B; font-weight: 600; }
.rp-help a:hover { color: #FF6C00; }

/* Input without right toggle */
.rp-input-wrap:not(:has(.rp-pwd-toggle)) .rp-input { padding-right: 14px; }

/* Two-column grid */
.rp-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 400px) { .rp-form-grid-2 { grid-template-columns: 1fr; } }

/* ── Toast notifications ── */
.custom-toast {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  min-width: 280px; max-width: 380px;
  padding: 14px 18px; border-radius: 18px;
  font-size: .88rem; font-weight: 600; font-family: inherit;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  animation: toastSlideIn .3s ease;
  border: 2px solid rgba(255,255,255,.2);
}
.custom-toast-content { display: flex; align-items: center; gap: 10px; }
.custom-toast-content i { font-size: 1rem; flex-shrink: 0; }
.custom-toast-error   { background: linear-gradient(135deg,#c0392b,#e74c3c); color:#fff; box-shadow:0 8px 32px rgba(192,57,43,.4); }
.custom-toast-success { background: linear-gradient(135deg,#00377B,#0055B3); color:#fff; }
.custom-toast-warning { background: linear-gradient(135deg,#FF6C00,#FF9240); color:#fff; box-shadow:0 8px 32px rgba(255,108,0,.4); }
.custom-toast-info    { background: linear-gradient(135deg,#61B9F0,#00377B); color:#fff; }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ════════════════════════════════════
   RESPONSIVE — MOBILE
════════════════════════════════════ */
@media (max-width: 767px) {
  .lp-layout { flex-direction: column; height: auto; }
  .rp-side { flex: 1; width: 100%; min-height: 100dvh; }
  .lp-side  { display: none; }
}