/**
 * Login (/login) and forgot-password (/forgot-password) — marketing shell only.
 * Scoped: body.gsts-marketing-shell .gsts-page-login | .gsts-page-forgot-password
 * Visual parity with gsts-register-page.css (card, fields, CTA, gold links).
 */

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-card,
body.gsts-marketing-shell .gsts-page-login .gsts-login-card {
  background: var(--gsts-mkt-bg-card, #fffefb);
  border-radius: var(--gsts-mkt-radius, 16px);
  box-shadow: var(--gsts-mkt-shadow-card, 0 18px 48px rgba(20, 31, 51, 0.1), 0 2px 10px rgba(20, 31, 51, 0.05)) !important;
  border: 1px solid var(--gsts-mkt-border, rgba(20, 31, 51, 0.1)) !important;
  overflow: hidden;
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-card-body,
body.gsts-marketing-shell .gsts-page-login .gsts-login-card-body {
  padding: 1.35rem 1.35rem 1.25rem;
}

@media (min-width: 768px) {
  body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-card-body,
  body.gsts-marketing-shell .gsts-page-login .gsts-login-card-body {
    padding: 2rem 2.1rem 1.75rem;
  }
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-socialite,
body.gsts-marketing-shell .gsts-page-login .gsts-login-socialite {
  padding: 1.25rem 1.35rem 1.35rem;
  background: linear-gradient(180deg, var(--gsts-mkt-bg-card, #fffefb) 0%, var(--gsts-mkt-bg-muted, #f4ece4) 100%);
  border-color: var(--gsts-mkt-border, rgba(20, 31, 51, 0.1)) !important;
}

@media (min-width: 768px) {
  body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-socialite,
  body.gsts-marketing-shell .gsts-page-login .gsts-login-socialite {
    padding: 1.35rem 2.1rem 1.65rem;
  }
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-heading,
body.gsts-marketing-shell .gsts-page-login .gsts-login-heading {
  font-size: clamp(1.35rem, 2.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gsts-mkt-navy, #141f33);
  line-height: 1.2;
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-card .form-group,
body.gsts-marketing-shell .gsts-page-login .gsts-login-card .form-group {
  margin-bottom: 1.1rem;
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-card .form-floating > .form-control,
body.gsts-marketing-shell .gsts-page-login .gsts-login-card .form-floating > .form-control {
  min-height: 52px;
  height: 52px;
  padding-top: 1.15rem;
  border-radius: var(--gsts-mkt-radius-sm, 12px);
  border: 1px solid var(--gsts-mkt-border, rgba(20, 31, 51, 0.1));
  background-color: var(--gsts-mkt-bg-elevated, #fff);
  color: var(--gsts-mkt-text, #141f33);
  font-size: 0.97rem;
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-card .form-floating > label,
body.gsts-marketing-shell .gsts-page-login .gsts-login-card .form-floating > label {
  color: var(--gsts-mkt-muted, #5c6578);
  font-weight: 500;
  font-size: 0.88rem;
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-card .form-floating > .form-control:focus,
body.gsts-marketing-shell .gsts-page-login .gsts-login-card .form-floating > .form-control:focus {
  border-color: var(--gsts-mkt-border-orange, rgba(200, 118, 38, 0.34));
  box-shadow: 0 0 0 0.2rem var(--gsts-mkt-focus-ring, rgba(210, 140, 48, 0.45));
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-card .form-floating.is-invalid > .form-control,
body.gsts-marketing-shell .gsts-page-login .gsts-login-card .form-floating.is-invalid > .form-control {
  border-color: rgba(185, 45, 45, 0.45);
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-check,
body.gsts-marketing-shell .gsts-page-login .gsts-login-check {
  padding: 0.65rem 0.85rem;
  border-radius: var(--gsts-mkt-radius-sm, 12px);
  border: 1px solid var(--gsts-mkt-border, rgba(20, 31, 51, 0.1));
  background: linear-gradient(165deg, var(--gsts-mkt-bg-card, #fffefb) 0%, var(--gsts-mkt-bg-muted, #f4ece4) 100%);
  display: inline-flex;
  gap: 0.55rem;
  align-items: flex-start;
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-check .form-check-input,
body.gsts-marketing-shell .gsts-page-login .gsts-login-check .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  border-radius: 0.28rem;
  border-color: rgba(20, 31, 51, 0.22);
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-check .form-check-input:checked,
body.gsts-marketing-shell .gsts-page-login .gsts-login-check .form-check-input:checked {
  background-color: var(--gsts-mkt-orange, #c67a1c);
  border-color: var(--gsts-mkt-orange-deep, #a45f0f);
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-check .form-check-input:focus,
body.gsts-marketing-shell .gsts-page-login .gsts-login-check .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem var(--gsts-mkt-focus-ring, rgba(210, 140, 48, 0.45));
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-check .form-check-label,
body.gsts-marketing-shell .gsts-page-login .gsts-login-check .form-check-label {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--gsts-mkt-navy-soft, #2a3548);
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-forgot-link,
body.gsts-marketing-shell .gsts-page-login .gsts-login-forgot-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gsts-mkt-orange, #c67a1c) !important;
  text-decoration: none;
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-forgot-link:hover,
body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-forgot-link:focus-visible,
body.gsts-marketing-shell .gsts-page-login .gsts-login-forgot-link:hover,
body.gsts-marketing-shell .gsts-page-login .gsts-login-forgot-link:focus-visible {
  color: #8d5610 !important;
  text-decoration: underline;
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-forgot-link:focus-visible,
body.gsts-marketing-shell .gsts-page-login .gsts-login-forgot-link:focus-visible {
  outline: 2px solid var(--gsts-mkt-focus-ring, rgba(210, 140, 48, 0.45));
  outline-offset: 2px;
  border-radius: 2px;
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-submit,
body.gsts-marketing-shell .gsts-page-login .gsts-login-submit {
  min-height: 50px;
  border-radius: var(--gsts-mkt-radius-sm, 12px) !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff !important;
  background: var(--gsts-mkt-gradient-cta, linear-gradient(135deg, #dc8b22 0%, #c97416 52%, #b8660f 100%)) !important;
  border: 1px solid var(--gsts-mkt-orange-deep, #a45f0f) !important;
  box-shadow: 0 8px 22px rgba(184, 108, 28, 0.26);
  transition: transform 0.12s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-submit:hover,
body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-submit:focus-visible,
body.gsts-marketing-shell .gsts-page-login .gsts-login-submit:hover,
body.gsts-marketing-shell .gsts-page-login .gsts-login-submit:focus-visible {
  color: #fff !important;
  background: var(--gsts-mkt-gradient-cta-hover, linear-gradient(135deg, #e3982e 0%, #d3821a 52%, #c46f12 100%)) !important;
  border-color: #8d5610 !important;
  box-shadow: 0 0 0 0.2rem var(--gsts-mkt-focus-ring, rgba(210, 140, 48, 0.45)), 0 10px 26px rgba(184, 108, 28, 0.22);
  transform: translateY(-1px);
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-submit:active,
body.gsts-marketing-shell .gsts-page-login .gsts-login-submit:active {
  transform: translateY(0);
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-submit.disabled,
body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-submit:disabled,
body.gsts-marketing-shell .gsts-page-login .gsts-login-submit.disabled,
body.gsts-marketing-shell .gsts-page-login .gsts-login-submit:disabled {
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-signup-wrap,
body.gsts-marketing-shell .gsts-page-login .gsts-login-signup-wrap {
  border-top: 1px solid var(--gsts-mkt-border, rgba(20, 31, 51, 0.1));
  margin-top: 0.25rem;
  padding-top: 1.1rem !important;
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-signup-text,
body.gsts-marketing-shell .gsts-page-login .gsts-login-signup-text {
  font-size: 0.95rem;
  color: var(--gsts-mkt-muted, #5c6578);
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-register-link.btn-link,
body.gsts-marketing-shell .gsts-page-login .gsts-login-register-link.btn-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gsts-mkt-orange, #c67a1c) !important;
  text-decoration: none !important;
  vertical-align: baseline;
  --bs-btn-color: var(--gsts-mkt-orange, #c67a1c);
  --bs-btn-hover-color: #8d5610;
  --bs-btn-focus-shadow: 0 0 0 0.2rem var(--gsts-mkt-focus-ring, rgba(210, 140, 48, 0.45));
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-register-link.btn-link:hover,
body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-register-link.btn-link:focus-visible,
body.gsts-marketing-shell .gsts-page-login .gsts-login-register-link.btn-link:hover,
body.gsts-marketing-shell .gsts-page-login .gsts-login-register-link.btn-link:focus-visible {
  color: #8d5610 !important;
  text-decoration: underline !important;
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-card .text-danger,
body.gsts-marketing-shell .gsts-page-login .gsts-login-card .text-danger {
  font-size: 0.86rem;
  margin-top: 0.35rem;
}

/* Social login — match marketing outline buttons */
body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-socialite .gsts-login-socialite-btn,
body.gsts-marketing-shell .gsts-page-login .gsts-login-socialite .gsts-login-socialite-btn {
  border-radius: var(--gsts-mkt-radius-sm, 12px) !important;
  font-weight: 600;
  border-color: var(--gsts-mkt-border-orange, rgba(200, 118, 38, 0.34)) !important;
  color: var(--gsts-mkt-navy, #141f33) !important;
  background: var(--gsts-mkt-bg-card, #fffefb) !important;
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-socialite .gsts-login-socialite-btn:hover,
body.gsts-marketing-shell .gsts-page-forgot-password .gsts-login-socialite .gsts-login-socialite-btn:focus-visible,
body.gsts-marketing-shell .gsts-page-login .gsts-login-socialite .gsts-login-socialite-btn:hover,
body.gsts-marketing-shell .gsts-page-login .gsts-login-socialite .gsts-login-socialite-btn:focus-visible {
  color: #8d5610 !important;
  border-color: rgba(175, 95, 22, 0.45) !important;
  background: var(--gsts-mkt-bg-muted, #f4ece4) !important;
}

/* Forgot-password success copy */
body.gsts-marketing-shell .gsts-page-forgot-password .gsts-reset-lead {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--gsts-mkt-muted, #5c6578);
}

body.gsts-marketing-shell .gsts-page-forgot-password .gsts-reset-alert {
  border-radius: var(--gsts-mkt-radius-sm, 12px);
  border: 1px solid var(--gsts-mkt-border, rgba(20, 31, 51, 0.1));
  background: linear-gradient(165deg, var(--gsts-mkt-bg-card, #fffefb) 0%, var(--gsts-mkt-bg-muted, #f4ece4) 100%);
  color: var(--gsts-mkt-navy-soft, #2a3548);
}
