/* ══ BORSA Sport — WordPress Login Page CSS ══════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --blue:    #003580;
  --blue-l:  #0047AD;
  --yellow:  #F5C400;
  --yellow-d:#B8930A;
  --white:   #ffffff;
  --gray-bg: #f0f4ff;
}

/* ── Page background ─────────────────────────────────────────────────── */
body.login {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  background: var(--blue) !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Animated geometric background */
body.login::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 80%, rgba(245,196,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(0,71,173,0.5) 0%, transparent 55%),
    linear-gradient(145deg, #002060 0%, #003580 45%, #004db3 100%);
  pointer-events: none;
  z-index: 0;
}

/* Floating circles */
body.login::after {
  content: '';
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(245,196,0,0.08);
  top: -200px; right: -150px;
  pointer-events: none;
  z-index: 0;
  animation: bs-rotate 25s linear infinite;
}

@keyframes bs-rotate { to { transform: rotate(360deg); } }

/* Particle dots */
.login-bg-dots {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle, rgba(245,196,0,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: bs-drift 20s ease-in-out infinite alternate;
}
@keyframes bs-drift { from{transform:translate(0,0)} to{transform:translate(10px,15px)} }

/* ── Login form wrapper ──────────────────────────────────────────────── */
#login {
  position: relative; z-index: 10;
  padding: 0 !important;
  width: 400px !important;
  max-width: calc(100vw - 32px);
  animation: bs-slide-up 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes bs-slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo area — BORSA Sport branding ───────────────────────────────── */
#login h1 a {
  background-image: none !important;
  background-color: transparent !important;
  width: auto !important;
  height: auto !important;
  display: block;
  text-indent: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 auto 24px !important;
  text-align: center;
  font-size: 0;
}

#login h1 a::before {
  content: 'BORSA';
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 3px;
  display: block;
}
#login h1 a::after {
  content: 'SPORT';
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 6px;
  display: block;
  margin-top: 2px;
}

/* ── Form card ───────────────────────────────────────────────────────── */
#loginform,
#lostpasswordform,
#resetpassform {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 20px !important;
  padding: 36px 32px !important;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.05) !important;
  margin: 0 !important;
  animation: bs-form-in 0.6s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}

@keyframes bs-form-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* Form title */
#loginform::before {
  content: 'Prijavite se na vaš portal';
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f4ff;
}

/* ── Labels ──────────────────────────────────────────────────────────── */
#loginform label,
#lostpasswordform label,
#resetpassform label {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #444 !important;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

/* ── Inputs ──────────────────────────────────────────────────────────── */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"],
#lostpasswordform input[type="text"],
#lostpasswordform input[type="email"],
#resetpassform input[type="text"],
#resetpassform input[type="password"] {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  width: 100% !important;
  padding: 13px 16px !important;
  border: 2px solid #e8ecf4 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  color: #1a1a2e !important;
  background: #f8faff !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
  box-shadow: none !important;
  outline: none !important;
  margin-bottom: 18px !important;
  height: auto !important;
}
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#loginform input[type="email"]:focus,
#lostpasswordform input[type="text"]:focus,
#lostpasswordform input[type="email"]:focus,
#resetpassform input[type="text"]:focus,
#resetpassform input[type="password"]:focus {
  border-color: var(--blue) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(0,53,128,0.08) !important;
}

/* ── Remember me ─────────────────────────────────────────────────────── */
.forgetmenot {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 0 !important;
}
.forgetmenot label {
  font-size: 13px !important;
  text-transform: none !important;
  font-weight: 500 !important;
  color: #666 !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}
#rememberme {
  width: 16px !important; height: 16px !important;
  accent-color: var(--blue);
  cursor: pointer;
}

/* ── Submit button ───────────────────────────────────────────────────── */
#wp-submit,
#resetpass input[type="submit"],
#lostpasswordform input[type="submit"] {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  width: 100% !important;
  padding: 14px 20px !important;
  background: var(--blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s !important;
  box-shadow: 0 4px 16px rgba(0,53,128,0.3) !important;
  text-shadow: none !important;
  height: auto !important;
}
#wp-submit:hover,
#resetpass input[type="submit"]:hover,
#lostpasswordform input[type="submit"]:hover {
  background: var(--blue-l) !important;
  box-shadow: 0 6px 24px rgba(0,53,128,0.4) !important;
  transform: translateY(-1px);
}
#wp-submit:active { transform: scale(0.98) !important; }

/* ── Submit row layout ────────────────────────────────────────────────── */
.submit { padding: 8px 0 0 !important; margin: 0 !important; }

/* ── Navigation links ────────────────────────────────────────────────── */
#nav, #backtoblog {
  text-align: center !important;
  margin-top: 14px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
#nav a, #backtoblog a {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
}
#nav a:hover, #backtoblog a:hover {
  color: var(--yellow) !important;
  text-decoration: none !important;
}

/* ── Error / message boxes ────────────────────────────────────────────── */
#login_error,
.message,
.success {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  border-radius: 10px !important;
  border-left: none !important;
  padding: 12px 16px !important;
  margin: 0 0 20px !important;
  font-size: 13px !important;
}
#login_error {
  background: #fde8e8 !important;
  color: #7d1a1a !important;
  border: 1px solid #f5c6c6 !important;
  box-shadow: none !important;
}
.message {
  background: #e8f0fb !important;
  color: var(--blue) !important;
  border: 1px solid #c5d8f4 !important;
  box-shadow: none !important;
}

/* ── Password strength ────────────────────────────────────────────────── */
.pw-weak   { color: #c0392b !important; }
.pw-medium { color: #e67e22 !important; }
.pw-strong { color: #1a7f37 !important; }
#pass-strength-result {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  border-radius: 6px !important;
  border: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* ── Footer copyright ─────────────────────────────────────────────────── */
.login #login_footer,
.privacy-policy-page-link {
  display: none !important;
}

/* Bottom tagline */
#login::after {
  content: 'sport.borsacard.com • BORSA Tim © ' attr(data-year);
  display: block;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.3px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 440px) {
  #login { width: 100% !important; }
  #loginform, #lostpasswordform, #resetpassform {
    padding: 28px 20px !important;
    border-radius: 16px !important;
  }
  #login h1 a::before { font-size: 26px; }
}
