/* ══════════════════════════════════════════════════════════════════
   login.css  |  Clubs Portal Login Page
   ══════════════════════════════════════════════════════════════════ */

html, body { height: 100%; overflow: hidden; }
@media (max-width: 767px) { html, body { overflow: auto; } }

/* ── Split layout ── */
.lp-layout { display: flex; height: 100dvh; overflow: hidden; }

/* ════════════════════════════════════
   LEFT BRAND PANEL
════════════════════════════════════ */
.lp-side {
  width: 42%;
  background: linear-gradient(155deg, #001230 0%, #002575 55%, #001840 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 48px; flex-shrink: 0;
}
@media (max-width: 767px) { .lp-side { display: none; } }

.lp-side-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lp-logo-link { display: inline-block; margin-bottom: 36px; }
.lp-logo-img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .92; }

.lp-heading {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 16px;
}
.lp-tagline {
  font-size: .88rem; color: rgba(255,255,255,.58);
  line-height: 1.75; max-width: 320px; margin-bottom: 36px;
  text-align: center;
}

/* Stat pills */
.lp-stats { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 40px; align-items: center; }
.lp-stat-item {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  font-size: .82rem; color: rgba(255,255,255,.75);
  width: fit-content;
}
.lp-stat-item i { color: #FF6C00; font-size: .85rem; }

/* Security tips (change-password panel) */
.lp-tips { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 40px; align-items: center; }
.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: .8rem; font-weight: 600; color: rgba(255,255,255,.5);
  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: 380px; height: 380px; top: -120px; right: -120px;
  background: radial-gradient(circle, rgba(97,185,240,.1) 0%, transparent 70%);
}
.lp-orb-2 {
  width: 260px; height: 260px; bottom: -60px; left: -60px;
  background: radial-gradient(circle, rgba(255,108,0,.08) 0%, transparent 70%);
}

/* ════════════════════════════════════
   RIGHT FORM PANEL
════════════════════════════════════ */
.rp-side {
  flex: 1;
  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;
}

.rp-form-wrap { width: min(480px, 100%); position: relative; z-index: 1; }

/* Decorative floating boxes */
.rp-deco { position: absolute; pointer-events: none; z-index: 0; }
.rp-deco-1 {
  width: 240px; height: 240px; top: -80px; right: -60px;
  background: linear-gradient(135deg, rgba(0,55,123,.14) 0%, rgba(0,85,179,.08) 100%);
  border: 2px solid rgba(0,55,123,.18); border-radius: 28px;
  transform: rotate(22deg); backdrop-filter: blur(2px);
}
.rp-deco-2 {
  width: 160px; height: 160px; bottom: -55px; left: -40px;
  background: linear-gradient(135deg, rgba(255,108,0,.12) 0%, rgba(255,146,64,.06) 100%);
  border: 2px solid rgba(255,108,0,.18); border-radius: 22px; transform: rotate(-20deg);
}
.rp-deco-3 {
  width: 90px; height: 90px; top: 28px; left: 24px;
  background: linear-gradient(135deg, rgba(97,185,240,.18) 0%, rgba(97,185,240,.06) 100%);
  border: 2px solid rgba(97,185,240,.28); border-radius: 16px; transform: rotate(14deg);
}
.rp-deco-4 {
  width: 56px; height: 56px; bottom: 44px; right: 32px;
  background: linear-gradient(135deg, rgba(0,55,123,.12) 0%, rgba(0,55,123,.05) 100%);
  border: 2px solid rgba(0,55,123,.15); border-radius: 12px; transform: rotate(38deg);
}
.rp-deco-5 {
  width: 110px; height: 110px; top: 45%; right: -30px;
  background: linear-gradient(135deg, rgba(0,55,123,.08) 0%, rgba(97,185,240,.06) 100%);
  border: 2px solid rgba(97,185,240,.2); border-radius: 20px; transform: rotate(-10deg);
}
.rp-deco-6 {
  width: 44px; height: 44px; top: 40%; left: 20px;
  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: 10px; transform: rotate(25deg);
}

/* 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; } }

/* ════════════════════════════════════
   FORM
════════════════════════════════════ */
.rp-form-head { margin-bottom: 32px; }
.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: .8rem; font-weight: 700;
  color: #4a5a7a; margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .04em;
}
.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 link */
.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 form inputs (change password page) */
.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 (verify-account page) */
.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 for register form */
.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: var(--font-body);
  box-shadow: var(--shadow-xl);
  animation: toastSlideIn .3s ease;
  border: 2px solid var(--border-color);
}

.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 0%, #e74c3c 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(192, 57, 43, 0.4);
}

.custom-toast-success {
  background: var(--primary-gradient);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
}

.custom-toast-warning {
  background: var(--accent-gradient);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(255, 108, 0, 0.4);
}

.custom-toast-info {
  background: var(--subhead-gradient);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}