/* ─── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette – aligned with wit-jo.com blues */
  --brand-primary:   #0057a8;   /* WATEEN primary blue */
  --brand-dark:      #003d7a;   /* deep navy */
  --brand-light:     #e8f1fb;   /* light tint */
  --brand-accent:    #0099d6;   /* cyan-blue accent */
  --brand-gradient:  linear-gradient(135deg, #0057a8 0%, #0099d6 100%);

  /* Neutrals */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --white: #ffffff;

  /* Status */
  --success: #16a34a;

  /* Spacing (8px grid) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s8: 64px;

  /* Typography */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  /* Radius */
  --r1: 6px; --r2: 12px; --r3: 18px; --r4: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-blue: 0 8px 32px rgba(0,87,168,.22);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── TOP BAR ────────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s4);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.topbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -0.5px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.topbar-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: var(--s1) var(--s2);
  border-radius: var(--r1);
  transition: color .18s, background .18s;
}

.topbar-nav a:hover { color: var(--brand-primary); background: var(--brand-light); }

.topbar-nav a.nav-contact {
  background: var(--brand-primary);
  color: var(--white);
  padding: 7px var(--s3);
  border-radius: 100px;
  font-size: 0.8125rem;
}

.topbar-nav a.nav-contact:hover { background: var(--brand-dark); color: var(--white); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r1);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: var(--s2) var(--s4) var(--s3);
  gap: var(--s1);
}
.mobile-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 10px var(--s2);
  border-radius: var(--r1);
  transition: color .18s, background .18s;
}
.mobile-nav a:hover { color: var(--brand-primary); background: var(--brand-light); }
.mobile-nav.open { display: flex; }

/* ─── MAIN SECTION ───────────────────────────────────────────────────────────── */
.main-section {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 68px - 220px);
}

/* ─── MARKETING PANEL (left / larger) ──────────────────────────────────────── */
.marketing-panel {
  flex: 1 1 58%;
  background: linear-gradient(160deg, var(--brand-dark) 0%, #004d99 45%, #0073c6 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s8) var(--s8) var(--s6);
  gap: var(--s6);
  color: var(--white);
}

/* decorative rings */
.marketing-panel::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,.05);
  pointer-events: none;
}
.marketing-panel::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 50px solid rgba(0,153,214,.12);
  pointer-events: none;
}

/* Eyebrow + headline */
.hero-headline { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: var(--s2);
}

.hero-headline h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: var(--s2);
}

.hero-headline h1 .accent {
  background: linear-gradient(90deg, #5cc8ff, #a8e6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  max-width: 480px;
  line-height: 1.65;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  position: relative;
  z-index: 1;
}

.feature-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r3);
  padding: var(--s3);
  backdrop-filter: blur(8px);
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease, background .2s;
}
.feature-card.visible { opacity: 1; transform: none; }
.feature-card:hover { background: rgba(255,255,255,.13); }

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(0,153,214,.35);
  border-radius: var(--r2);
  display: grid;
  place-items: center;
  color: #7ddeff;
}
.feature-icon.ai { background: rgba(168,230,255,.2); color: #a8e6ff; }
.feature-icon svg { width: 20px; height: 20px; }

.feature-body h3 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.feature-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-body ul li {
  font-size: 0.78rem;
  color: rgba(255,255,255,.78);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.45;
}

.check {
  color: #5cc8ff;
  font-size: 0.75rem;
  margin-top: 1px;
  flex-shrink: 0;
}

/* Trust strip */
.trust-strip {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r2);
  overflow: hidden;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.trust-items { width: 100%; position: relative; }

.trust-item {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px var(--s3);
  font-size: 0.875rem;
  color: rgba(255,255,255,.9);
  animation: fadeSlideIn .4s ease;
}
.trust-item.active { display: flex; }
.trust-item strong { color: var(--white); }
.trust-icon {
  color: var(--brand-accent);
  font-size: 0.6rem;
  flex-shrink: 0;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tagline bar */
.tagline-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tagline-bar .dot { color: var(--brand-accent); font-size: 1.2rem; }

/* ─── SIGN-IN PANEL (right / smaller) ──────────────────────────────────────── */
.signin-panel {
  flex: 0 0 38%;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s6) var(--s5);
  border-left: 1px solid var(--gray-200);
}

.signin-card {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r4);
  padding: var(--s6) var(--s5);
  box-shadow: var(--shadow-lg);
}

.signin-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--s4);
}

.signin-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.signin-logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.signin-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 8px;
}

.signin-desc {
  font-size: 0.8125rem;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: var(--s4);
  line-height: 1.55;
}

/* Form */
.signin-form { display: flex; flex-direction: column; gap: var(--s3); }

.field-group { display: flex; flex-direction: column; gap: 6px; }

.field-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
}

.field-group input[type="email"],
.field-group input[type="text"],
.field-group input[type="password"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r2);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--gray-900);
  background: var(--white);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.field-group input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0,87,168,.12);
}

.field-group input::placeholder { color: var(--gray-400); }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }

.toggle-pw {
  position: absolute;
  right: 0;
  top: 0;
  height: 44px;
  width: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  display: grid;
  place-items: center;
  border-radius: 0 var(--r2) var(--r2) 0;
  transition: color .18s;
}
.toggle-pw:hover { color: var(--brand-primary); }
.toggle-pw svg { width: 18px; height: 18px; }

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  color: var(--gray-600);
  cursor: pointer;
  user-select: none;
}
.remember-me input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.forgot-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-primary);
  text-decoration: none;
  transition: color .18s;
}
.forgot-link:hover { color: var(--brand-dark); text-decoration: underline; }

.signin-btn {
  width: 100%;
  height: 48px;
  background: var(--brand-gradient);
  color: var(--white);
  border: none;
  border-radius: var(--r2);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-blue);
  transition: opacity .18s, transform .18s, box-shadow .18s;
  position: relative;
}
.signin-btn:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 12px 36px rgba(0,87,168,.3); }
.signin-btn:active { transform: none; opacity: 1; }
.signin-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.btn-spinner svg {
  width: 18px;
  height: 18px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.signin-help {
  margin-top: var(--s3);
  font-size: 0.8rem;
  color: var(--gray-500);
  text-align: center;
}
.signin-help a {
  color: var(--brand-primary);
  font-weight: 500;
  text-decoration: none;
}
.signin-help a:hover { text-decoration: underline; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
  padding: var(--s8) 0 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s4);
  display: flex;
  gap: var(--s8);
  align-items: flex-start;
  flex-wrap: wrap;
  padding-bottom: var(--s6);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand { flex: 1 1 260px; }

.footer-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--r1);
  padding: 4px 10px;
  margin-bottom: var(--s2);
  display: block;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--s2);
  display: block;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,.45);
  max-width: 240px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: var(--s8);
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  transition: color .18s;
}
.footer-col a:hover { color: var(--brand-accent); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--s3) var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: var(--s2);
}

.footer-domain {
  font-weight: 500;
  color: rgba(255,255,255,.4);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .marketing-panel { padding: var(--s6) var(--s5); }
  .feature-grid { grid-template-columns: 1fr; }
  .signin-panel { flex: 0 0 42%; }
}

@media (max-width: 768px) {
  .topbar-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-section {
    flex-direction: column-reverse;
    min-height: unset;
  }

  .marketing-panel {
    padding: var(--s5) var(--s4);
    gap: var(--s4);
  }
  .marketing-panel::before,
  .marketing-panel::after { display: none; }

  .feature-grid { grid-template-columns: 1fr; }

  .signin-panel {
    flex: none;
    border-left: none;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--s5) var(--s3);
  }

  .footer-inner { gap: var(--s5); }
  .footer-links { gap: var(--s5); }
}

@media (max-width: 480px) {
  .topbar-inner { padding: 0 var(--s3); }
  .marketing-panel { padding: var(--s4) var(--s3); }
  .signin-card { padding: var(--s4) var(--s3); }
}

