/* =========================================================================
   SENDPK.COM — Login page styles (login.php only)
   -------------------------------------------------------------------------
   Page-specific styling only. Colours, radii, shadows and fonts are read
   from the shared design tokens in theme.css (:root) where practical —
   the panel gradient below is a deliberately different, deeper forest-green
   (per the supplied design) than the site's own --wa-teal-dark, kept local
   to this file rather than promoted into theme.css since it's a one-page
   accent, not a rebrand. Everything is scoped under #loginPage so it can
   never leak onto other pages.
   ========================================================================= */

#loginPage {
  /* Same green glow recipe as .hero / #pricePage, anchored to this page's
     own top-level wrapper since login.php has no hero section of its own. */
  background: var(--section-glow), var(--wa-page);
  padding: 1.5rem 0 1.75rem;
}

.login-shell {
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================================================
   Login form card — single centered column (no side marketing panel)
   ========================================================================= */
.login-card {
  background: var(--wa-surface);
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  padding: 2rem clamp(1.75rem, 4vw, 3.375rem);
  display: flex; flex-direction: column; justify-content: center;
}
.login-card-title { font-size: clamp(1.5rem, 2vw, 1.85rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .35rem; }
.login-card-sub { color: var(--wa-muted); font-size: .9rem; margin: 0 0 1.1rem; }

/* PTA authorization badge — replaces the plain "Log In" heading so the
   card leads with a trust signal instead of a redundant label (the page
   itself, and the submit button, already say "Log In"). */
.login-pta-badge {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-md);
  padding: 1.1rem 1.3rem; margin-bottom: 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.login-pta-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.login-pta-badge-logo { width: 56px; height: 56px; border-radius: 12px; flex: 0 0 auto; object-fit: contain; }
.login-pta-badge-text { display: flex; flex-direction: column; line-height: 1.35; }
.login-pta-badge-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; color: var(--wa-ink); }
.login-pta-badge-text span { font-size: .95rem; color: var(--wa-muted); }
.login-pta-badge-check {
  display: grid; place-items: center; flex: 0 0 auto;
  margin-left: auto; color: var(--wa-teal); font-size: 2.1rem;
}

.login-alert {
  display: flex; align-items: flex-start; gap: .55rem;
  background: #FDECEC; color: #9C2A2A; border: 1px solid #F5C6C6;
  border-radius: 10px; padding: .8rem 1rem; font-size: .9rem; font-weight: 600;
  margin-bottom: 1.3rem;
}
.login-alert i { margin-top: .15rem; flex: 0 0 auto; }
.login-alert-success { background: #EAFAF1; color: #0F7B47; border-color: #BFEDD3; }

.login-field { margin-bottom: .8rem; }
.login-field label { display: block; font-weight: 700; font-size: .86rem; color: var(--wa-ink); margin-bottom: .35rem; }

/* Icon-prefixed field chrome: the border/bg/radius live on the wrapper,
   the <input> itself is borderless and just fills the remaining space. */
.login-input-wrap {
  display: flex; align-items: center; gap: .6rem;
  border: 1.5px solid #e2e8e4; border-radius: 13px;
  padding: 0 1rem; height: 46px; background: #fbfdfc;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login-input-wrap:focus-within { border-color: var(--wa-action); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.login-input-wrap > .bi { color: #9aa8a0; font-size: 1.05rem; flex: 0 0 auto; }
.login-input-wrap input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  height: 100%; font-size: 1rem; font-family: inherit; color: var(--wa-ink);
}
.login-input-wrap input::placeholder { color: #9aa8a0; }

.login-pw-toggle {
  border: 0; background: transparent; color: #9aa8a0;
  font-size: 1.05rem; line-height: 1; padding: .35rem; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.login-pw-toggle:hover, .login-pw-toggle:focus { color: var(--wa-teal-dark); }

.login-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  margin-bottom: .8rem; font-size: .86rem;
}

/* Custom checkbox: real <input> kept for accessibility/keyboard support,
   visually hidden (not display:none, which breaks focus) with a styled
   sibling box + Bootstrap-icon checkmark toggled via the :checked selector
   — no data-URI/inline-style tricks needed. */
.login-remember { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--wa-body); cursor: pointer; }
.login-remember-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.login-remember-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px;
  border: 1.5px solid var(--wa-line); background: #fff;
  transition: background .15s ease, border-color .15s ease;
}
.login-remember-box i { font-size: .82rem; color: #fff; opacity: 0; transition: opacity .15s ease; }
.login-remember-input:checked + .login-remember-box { background: var(--wa-action); border-color: var(--wa-action); }
.login-remember-input:checked + .login-remember-box i { opacity: 1; }
.login-remember-input:focus-visible + .login-remember-box { box-shadow: 0 0 0 3px rgba(34, 197, 94, .35); }

.login-forgot { font-weight: 700; }

/* reCAPTCHA stays the real Google widget (functional bot protection) — this
   only restyles the surrounding card chrome to match the new field look;
   the widget's own iframe content is controlled by Google, not this CSS. */
.login-captcha-wrap {
  border: 1px solid #e2e8e4; border-radius: 12px; background: #f9fafb;
  padding: .25rem; display: flex; overflow: hidden;
}
.login-recaptcha-error { color: #C0392B; font-size: .82rem; font-weight: 600; margin: .4rem 0 0; }

.login-submit {
  width: 100%; height: 50px; border: 0; border-radius: 15px;
  background: linear-gradient(135deg, #2fce7b, #12a557);
  color: #fff; font-size: 1.02rem; font-weight: 700;
  box-shadow: 0 16px 30px -12px rgba(18, 165, 87, .55);
  transition: filter .15s ease;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
}
.login-submit:hover, .login-submit:focus { color: #fff; filter: brightness(1.04); }
.login-submit-loading { opacity: .85; cursor: default; }
.login-submit-loading:hover { filter: none; }

.login-spinner {
  width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: login-spin .7s linear infinite;
}
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .login-spinner { animation: none; }
}

.login-signup { text-align: center; font-size: .88rem; color: var(--wa-muted); margin: 1rem 0 0; }
.login-signup a { font-weight: 700; }

/* =========================================================================
   Compliance notice (shared width with the login shell)
   ========================================================================= */
.login-compliance {
  max-width: 560px; margin: 1.1rem auto 0;
  background: var(--wa-surface); border: 1px solid var(--wa-line);
  border-radius: var(--radius-card); padding: .8rem 1.1rem;
  font-size: .82rem; color: var(--wa-muted);
}
.login-compliance strong { color: var(--wa-ink); }

@media (max-width: 575.98px) {
  #loginPage { padding: 1.5rem 0 1.75rem; }
  .login-card { padding: 1.6rem 1.4rem; border-radius: 22px; }
  .login-card-title { font-size: 1.4rem; }
}
