/* ═══════════════════════════════════════════════════════
   Affiliate Login Page — matches MemberLogin design spec
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #2b3658;
  --gold:   #c9a84c;
  --white:  #ffffff;
  --light:  #f3f5f9;
  --gray:   #6b7280;
  --darkgray: #4b4f58;
  --border: #e2e6ef;
  --red:    #dc2626;
  --strip:  #50535b;   /* trust strip dark gray */
  --font:   'Poppins', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--navy); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; }

.section-wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ── HEADER (light gray for logo contrast) ────────────── */
.site-header { background: #f4f5f7; position: sticky; top: 0; z-index: 200; border-bottom: 1px solid var(--border); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-logo { height: 44px; width: auto; object-fit: contain; }
.nav-support {
  color: var(--navy); font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 18px;
  background: var(--white);
  transition: background .2s;
}
.nav-support:hover { background: var(--light); }

/* ── HERO (cruise ship photo) ─────────────────────────── */
.hero {
  background:
    linear-gradient(90deg, rgba(20,28,50,.55) 0%, rgba(20,28,50,.15) 55%, rgba(20,28,50,.05) 100%),
    url('/affiliate/graphics/Hero Banner.png');
  background-size: cover; background-position: center;
  padding: 64px 28px 72px;
}
.hero-heading {
  max-width: 1100px; margin: 0 auto 32px;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; color: var(--white);
  line-height: 1.18;
}
.hero-inner { max-width: 1100px; margin: 0 auto; }

/* Login — plain fields directly on the photo (no card) */
.login-card { background: transparent; max-width: 440px; }
.login-card h2 { font-size: 1.6rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.card-sub { font-size: .85rem; color: rgba(255,255,255,.85); margin-bottom: 26px; }
.phone-link { color: var(--white); font-weight: 600; text-decoration: underline; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 500; color: var(--white); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 9px 2px;
  border: none; border-bottom: 1.5px solid rgba(255,255,255,.6);
  background: transparent; color: var(--white);
  font-family: var(--font); font-size: .95rem; outline: none;
  transition: border-color .2s;
}
.field input::placeholder { color: rgba(255,255,255,.55); }
.field input:focus { border-bottom-color: var(--white); }

.pw-row { display: flex; align-items: flex-end; gap: 0; position: relative; }
.pw-row input { flex: 1; }
.pw-eye {
  position: absolute; right: 0; bottom: 9px;
  background: none; border: none; color: var(--white);
  font-family: var(--font); font-size: .82rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
}

.login-error {
  background: rgba(254,242,242,.95); border: 1px solid #fecaca; color: var(--red);
  border-radius: 8px; padding: 10px 14px; font-size: .85rem; margin-bottom: 14px;
}

.btn-sign-in {
  display: block; width: 100%;
  background: var(--gold); color: var(--white);
  border: none; border-radius: 6px;
  padding: 14px; font-family: var(--font); font-size: 1rem; font-weight: 700;
  letter-spacing: .12em; cursor: pointer; transition: background .2s, transform .1s;
  margin: 6px 0 14px;
}
.btn-sign-in:hover { background: #d9b85a; }
.btn-sign-in:active { transform: scale(.99); }
.btn-sign-in:disabled { opacity: .6; cursor: not-allowed; }

.forgot { display: block; font-size: .82rem; color: rgba(255,255,255,.85); }
.forgot:hover { text-decoration: underline; }

/* Hero copy (heading top-left over photo; no trust badges) */
.hero-copy { order: -1; }
.hero-copy h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; color: var(--white);
  line-height: 1.18;
}
.trust-badges { display: none; }

/* ── TRUST STRIP (dark gray bar, white icons) ─────────── */
.pillars-section { background: var(--strip); padding: 30px 0; }
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center;
}
.pillar { padding: 4px 18px; border-right: 1px solid rgba(255,255,255,.18); }
.pillar:last-child { border-right: none; }
.pillar img { width: 40px; height: 40px; object-fit: contain; margin: 0 auto 10px; filter: brightness(0) invert(1); }
.pillar span { font-size: .92rem; font-weight: 600; color: var(--white); line-height: 1.4; }

/* ── HOW IT WORKS (white) ─────────────────────────────── */
.how-section { background: var(--white); padding: 64px 0 56px; }
.section-heading {
  text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700;
  color: var(--navy); margin-bottom: 44px;
}
.section-heading.dark { color: var(--navy); }

.steps { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.step { background: none; border: none; padding: 0 36px; text-align: center; flex: 0 1 240px; }
.step-circle {
  width: 40px; height: 40px; border-radius: 50%; background: var(--darkgray);
  color: var(--white); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.step img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 14px; }
.step-svg { width: 56px; height: 56px; display: block; margin: 0 auto 14px; }
.step h3 { color: var(--navy); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: .85rem; }
.step-chevron { display: flex; align-items: center; padding: 0 4px; color: var(--navy); font-size: 1.3rem; flex-shrink: 0; }

/* ── BENEFITS (white cards, dark icons) ───────────────── */
.benefits-section { background: var(--white); padding: 8px 0 72px; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit {
  display: flex; flex-direction: row; align-items: center; text-align: left;
  gap: 16px; padding: 22px 24px; border-radius: 10px;
  border: 1.5px solid var(--border); transition: box-shadow .2s, border-color .2s;
}
.benefit:hover { box-shadow: 0 4px 24px rgba(25,34,68,.08); border-color: #c4cce6; }
.benefit img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.benefit-svg { width: 44px; height: 44px; flex-shrink: 0; }
.benefit span { font-size: .9rem; font-weight: 600; color: var(--navy); }

/* ── CTA BANNER (island photo, dark button) ───────────── */
.cta-section { background-size: cover; background-position: center; }
.cta-overlay { background: rgba(33,42,68,.66); padding: 70px 28px; }
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; color: var(--white); margin-bottom: 28px; }
.btn-cta {
  display: inline-block; background: var(--strip); color: var(--white);
  font-weight: 600; font-size: .95rem; padding: 15px 44px; border-radius: 6px;
  transition: background .2s, transform .15s; cursor: pointer;
}
.btn-cta:hover { background: #3c3f47; transform: translateY(-2px); }

/* ── FOOTER (dark) ────────────────────────────────────── */
.site-footer { background: var(--strip); padding: 40px 28px 28px; }
.footer-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-logo { height: 42px; width: auto; object-fit: contain; }
.footer-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: .85rem; }
.footer-links a { color: rgba(255,255,255,.8); transition: color .2s; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-links span { color: rgba(255,255,255,.3); }
.footer-note { font-size: .76rem; color: rgba(255,255,255,.5); text-align: center; max-width: 520px; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .login-card { max-width: 480px; }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .pillar:nth-child(2) { border-right: none; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero { padding: 40px 16px 48px; }
  .steps { flex-direction: column; }
  .step-chevron { transform: rotate(90deg); padding: 12px 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 16px; }
}
