/* ═══════════════════════════════════════════════
   FCC AUTH — sign in / create account
   Scoped under .fcc-auth so it can live inside any
   theme page without leaking.
═══════════════════════════════════════════════ */
.fcc-auth {
  --navy:       #0f1d29;
  --navy-deep:  #08121b;
  --sky:        #5391de;
  --sky-soft:   #d3e8f2;
  --sky-bg:     #e8f3f8;
  --gold:       #c9a227;
  --gold-soft:  #d9b647;
  --gold-deep:  #a88516;
  --cream:      #faf8f5;
  --cream-warm: #f6f1eb;
  --ink:        #2a2a2a;
  --ink-soft:   #5a5a5a;
  --line:       rgba(15,29,41,.12);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Source Sans 3', system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.fcc-auth *, .fcc-auth *::before, .fcc-auth *::after { box-sizing: border-box; }

/* ─── Brand panel ─── */
.fcc-auth-brand {
  background: var(--navy-deep);
  color: #fff;
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.fcc-auth-brand::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(83,145,222,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(201,162,39,.14) 0%, transparent 50%);
  pointer-events: none;
}
.fcc-auth-brand::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: .6;
}
.fcc-auth-brand-inner { position: relative; z-index: 2; max-width: 460px; }

.fcc-auth-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 24px;
}
.fcc-auth-eyebrow::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--gold-soft);
  display: inline-block;
}
.fcc-auth-wordmark {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0 0 .15em;
}
.fcc-auth-wordmark em { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.fcc-auth-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-soft);
  margin: 0 0 28px;
}
.fcc-auth-lede {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,.78);
  margin: 0 0 36px;
}
.fcc-auth-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.fcc-auth-perks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: .92rem;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
}
.fcc-auth-perk-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(201,162,39,.12);
  border: 1px solid rgba(201,162,39,.25);
  color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.fcc-auth-perks strong { color: #fff; font-weight: 600; display: block; margin-bottom: 1px; }
.fcc-auth-brand-foot {
  position: relative; z-index: 2;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .04em;
  padding-top: 32px;
}
.fcc-auth-brand-foot a {
  color: rgba(255,255,255,.7);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.2);
  text-underline-offset: 3px;
}
.fcc-auth-brand-foot a:hover { color: var(--gold-soft); text-decoration-color: var(--gold-soft); }

/* ─── Form panel ─── */
.fcc-auth-form-panel {
  background: var(--cream-warm);
  padding: 60px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fcc-auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 30px rgba(15,29,41,.10);
  padding: 44px 48px;
  width: 100%;
  max-width: 480px;
}

/* ─── Tabs ─── */
.fcc-auth-tabs {
  display: flex;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 32px;
}
.fcc-auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.fcc-auth-tab:hover { color: var(--navy); }
.fcc-auth-tab.is-active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15,29,41,.18);
}

.fcc-auth-pane[hidden] { display: none; }
.fcc-auth-title {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.fcc-auth-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
  line-height: 1.55;
}
.fcc-auth-foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .88rem;
  color: var(--ink-soft);
}
.fcc-auth-switch {
  background: none; border: none;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 600;
  color: var(--sky);
  cursor: pointer;
  padding: 0;
}
.fcc-auth-switch:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ─── State screens (confirm email, signed in, etc.) ─── */
.fcc-auth-state { text-align: center; }
.fcc-auth-state-mark {
  width: 58px; height: 58px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: var(--sky-bg);
  border: 1px solid var(--sky-soft);
  color: var(--navy);
}
.fcc-auth-state-mark--success {
  background: rgba(201,162,39,.10);
  border-color: rgba(201,162,39,.35);
  color: var(--gold-deep);
}
.fcc-auth-state-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 12px;
}
.fcc-auth-state-body { font-size: 1rem; color: var(--ink); margin: 0 0 14px; }
.fcc-auth-state-body strong { color: var(--navy); }
.fcc-auth-state-note {
  font-size: .9rem;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin: 0 0 24px;
}
.fcc-auth-state-help {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-soft);
}
.fcc-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.fcc-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 50px;
  background: var(--gold);
  color: var(--navy);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(201,162,39,.28);
  transition: background .25s ease, box-shadow .25s ease;
}
.fcc-auth-btn:hover { background: var(--gold-soft); color: var(--navy); box-shadow: 0 12px 32px rgba(201,162,39,.36); }
.fcc-auth-btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.fcc-auth-btn--ghost:hover { background: var(--cream); box-shadow: none; }

/* ─── Banner above the forms ─── */
.fcc-auth-banner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  margin-bottom: 24px;
  border-radius: var(--r-sm);
  border: 1px solid var(--sky-soft);
  border-left: 3px solid var(--sky);
  background: var(--sky-bg);
  color: var(--navy);
  font-size: .9rem;
  line-height: 1.5;
}
.fcc-auth-banner--success {
  background: rgba(201,162,39,.08);
  border-color: rgba(201,162,39,.35);
  border-left-color: var(--gold);
  color: var(--gold-deep);
}
.fcc-auth-banner strong { font-weight: 700; }
.fcc-auth-banner span { color: var(--ink); }

/* ═══════════════════════════════════════════════
   SWPM FORM RESTYLING
═══════════════════════════════════════════════ */
.fcc-auth-swpm form,
.fcc-auth-swpm .swpm-login-widget-form,
.fcc-auth-swpm .swpm-registration-widget-form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
.fcc-auth-swpm p,
.fcc-auth-swpm .swpm-username-input,
.fcc-auth-swpm .swpm-password-input,
.fcc-auth-swpm .swpm-registration-form-row {
  margin: 0 0 14px !important;
}
.fcc-auth-swpm label,
.fcc-auth-swpm .swpm-label {
  display: block;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft) !important;
  margin: 0 0 6px !important;
}
.fcc-auth-swpm input[type="text"],
.fcc-auth-swpm input[type="email"],
.fcc-auth-swpm input[type="password"],
.fcc-auth-swpm input[type="tel"],
.fcc-auth-swpm input[type="url"],
.fcc-auth-swpm input[type="number"],
.fcc-auth-swpm select,
.fcc-auth-swpm textarea {
  width: 100% !important;
  padding: 12px 14px !important;
  font-family: var(--sans) !important;
  font-size: .95rem !important;
  color: var(--ink) !important;
  background: var(--cream) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--r-sm) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease !important;
  -webkit-appearance: none;
  appearance: none;
}
.fcc-auth-swpm input:focus,
.fcc-auth-swpm select:focus,
.fcc-auth-swpm textarea:focus {
  border-color: var(--sky) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(83,145,222,.12) !important;
}
.fcc-auth-swpm input[type="checkbox"],
.fcc-auth-swpm input[type="radio"] {
  width: auto !important;
  margin-right: 8px !important;
  accent-color: var(--sky);
}
.fcc-auth-swpm .swpm-remember-me,
.fcc-auth-swpm .swpm-password-input-visibility {
  display: flex;
  align-items: center;
  margin: 0 0 16px;
}
.fcc-auth-swpm .swpm-rememberme-label,
.fcc-auth-swpm .swpm-password-toggle-checkbox-label {
  font-size: .85rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ink) !important;
  margin: 0 !important;
}
.fcc-auth-swpm input[type="submit"],
.fcc-auth-swpm button[type="submit"] {
  display: block !important;
  width: 100% !important;
  padding: 14px 30px !important;
  margin-top: 8px !important;
  border: none !important;
  border-radius: 50px !important;
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-family: var(--sans) !important;
  font-size: .9rem !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(201,162,39,.28) !important;
  transition: background .25s ease, box-shadow .25s ease !important;
  -webkit-appearance: none;
  appearance: none;
}
.fcc-auth-swpm input[type="submit"]:hover,
.fcc-auth-swpm button[type="submit"]:hover {
  background: var(--gold-soft) !important;
  box-shadow: 0 12px 32px rgba(201,162,39,.36) !important;
}
.fcc-auth-swpm a { color: var(--sky); font-weight: 600; text-decoration: none; }
.fcc-auth-swpm a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

.fcc-auth-swpm .swpm-forgot-pass-link,
.fcc-auth-swpm .swpm-join-us-link {
  margin-top: 14px;
  font-size: .86rem;
}
/* The register link inside SWPM's login form duplicates our own tab. */
.fcc-auth-swpm .swpm-join-us-link { display: none; }

/* ─── SWPM notices ─── */
.fcc-auth-swpm #swpm_message,
.fcc-auth-swpm .swpm_success,
.fcc-auth-swpm .swpm_error,
.fcc-auth-swpm .swpm-registration-success-msg,
.fcc-auth-swpm .swpm_login_error_activation_required,
.fcc-auth-swpm .swpm-yellow-box,
.fcc-auth-swpm .swpm-red-box,
.fcc-auth-swpm .swpm-green-box {
  display: block;
  padding: 14px 16px !important;
  margin: 0 0 18px !important;
  border-radius: var(--r-sm) !important;
  border: 1px solid var(--line) !important;
  font-size: .9rem !important;
  line-height: 1.55;
}
.fcc-auth-swpm .swpm_success,
.fcc-auth-swpm .swpm-green-box,
.fcc-auth-swpm .swpm-registration-success-msg {
  background: var(--sky-bg) !important;
  border-color: var(--sky-soft) !important;
  color: var(--navy) !important;
}
.fcc-auth-swpm .swpm_error,
.fcc-auth-swpm .swpm-red-box {
  background: #fff5f5 !important;
  border-color: rgba(229,115,115,.4) !important;
  color: #a02323 !important;
}
.fcc-auth-swpm .swpm-yellow-box {
  background: rgba(201,162,39,.08) !important;
  border-color: rgba(201,162,39,.3) !important;
  color: var(--gold-deep) !important;
}
.fcc-auth-swpm .swpm_error ul,
.fcc-auth-swpm #swpm_message ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

/* Login status text (wrong password, account needs activation, etc.) */
.fcc-auth-swpm .swpm-login-action-msg:not(:empty) { display: block; margin-top: 16px; }
.fcc-auth-swpm .swpm-login-widget-action-msg:not(:empty) {
  display: block;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  background: #fff5f5;
  border: 1px solid rgba(229,115,115,.4);
  color: #a02323;
  font-size: .9rem;
  line-height: 1.55;
}
.fcc-auth-swpm .swpm_login_error_activation_required {
  background: rgba(201,162,39,.08) !important;
  border-color: rgba(201,162,39,.3) !important;
  color: var(--gold-deep) !important;
  margin: 0 !important;
}

/* Logged-in widget, if SWPM renders it anywhere on this page */
.fcc-auth-swpm .swpm-login-widget-logged { font-size: .92rem; }
.fcc-auth-swpm .swpm-logged-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.fcc-auth-swpm .swpm-logged-value { margin-bottom: 12px; color: var(--navy); font-weight: 600; }

/* ─── Focus ─── */
.fcc-auth :focus-visible {
  outline: 2.5px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .fcc-auth { grid-template-columns: 1fr; min-height: 0; }
  .fcc-auth-brand { padding: 48px 36px; }
  .fcc-auth-form-panel { padding: 48px 28px; }
  .fcc-auth-perks { display: none; }
}
@media (max-width: 600px) {
  .fcc-auth-brand { padding: 40px 24px; }
  .fcc-auth-form-panel { padding: 32px 16px; }
  .fcc-auth-card { padding: 32px 24px; border-radius: var(--r); }
  .fcc-auth-wordmark { font-size: 2.2rem; }
  .fcc-auth-tagline { font-size: 1.05rem; }
  .fcc-auth-lede { font-size: .95rem; margin-bottom: 24px; }
  .fcc-auth-title { font-size: 1.55rem; }
  .fcc-auth-sub { font-size: .95rem; margin-bottom: 22px; }
  .fcc-auth-state-title { font-size: 1.45rem; }
  .fcc-auth-actions { flex-direction: column; }
  .fcc-auth-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .fcc-auth * { transition: none !important; }
}

/* Inline confirmation used when registration is submitted over AJAX and the
   redirect can't happen — SWPM injects this into the form area. */
.fcc-auth-inline-state,
.fcc-auth-swpm .fcc-auth-inline-state {
  display: block;
  padding: 18px 20px;
  margin: 0 0 18px;
  border-radius: var(--r-sm, 8px);
  background: #e8f3f8;
  border: 1px solid #d3e8f2;
  border-left: 3px solid #5391de;
  color: #2a2a2a;
  font-size: .95rem;
  line-height: 1.6;
}
.fcc-auth-inline-state strong { color: #0f1d29; }
