:root {
  --orange-700: #e66b00;
  --orange-500: #ff9418;
  --navy-950: #1b1455;
  --navy-800: #2b2178;
  --navy-600: #4337a5;
  --green: #228b45;
  --cream: #fff8ea;
  --text: #211f2b;
  --muted: #6f6874;
  --border: rgba(43, 33, 120, .14);
  --shadow: 0 18px 45px rgba(54, 26, 0, .14);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #0b6bcb;
  outline-offset: 3px;
}

.landing-body {
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.75) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 32%, rgba(255,255,255,.55) 0 2px, transparent 3px),
    linear-gradient(135deg, #ffb31a 0%, #ff8a00 42%, #ef5d00 100%);
  background-size: 88px 88px, 120px 120px, auto;
}
.page-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.site-header {
  margin-top: 22px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 3px solid var(--orange-500);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 18px rgba(60,35,0,.16);
}
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { color: var(--navy-800); font-size: clamp(22px, 3vw, 31px); line-height: 1.05; }
.brand-copy small { max-width: 520px; margin-top: 4px; color: #534c57; font-size: 13px; }
.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--green);
  background: #effaf2;
  border: 1px solid #cbead4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34,139,69,.12);
}
.landing-main { flex: 1; padding: 48px 0 34px; }
.hero-copy {
  max-width: 780px;
  margin: 0 auto 34px;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(74,33,0,.25);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 14px;
  color: #fff;
  background: var(--navy-800);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
}
.hero-copy h1 { margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.02; }
.hero-copy p { margin: 14px 0 0; font-size: 19px; font-weight: 700; }
.portal-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.portal-card {
  position: relative;
  min-height: 330px;
  padding: 32px;
  overflow: hidden;
  background: rgba(255,255,255,.97);
  border: 3px solid rgba(255,255,255,.8);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.portal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: var(--navy-800);
}
.customer-card::before { background: var(--green); }
.portal-card:hover { transform: translateY(-5px); box-shadow: 0 25px 60px rgba(54,26,0,.2); }
.card-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: linear-gradient(145deg, #fff3cf, #ffd067);
  border: 1px solid #ffc750;
  border-radius: 22px;
}
.customer-card .card-icon { background: linear-gradient(145deg, #e8f8ee, #bde8cb); border-color: #b1ddbf; }
.card-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.customer-card .card-tag { color: var(--green); }
.portal-card h2 { margin: 0; color: var(--navy-800); font-size: 30px; }
.portal-card p { min-height: 52px; margin: 13px 0 26px; color: var(--muted); line-height: 1.6; }
.card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 17px;
  color: #fff;
  background: var(--navy-800);
  border-radius: 12px;
  font-weight: 800;
}
.customer-card .card-action { background: var(--green); }
.identity-strip {
  max-width: 980px;
  margin: 24px auto 0;
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  background: var(--navy-800);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
}
.site-footer {
  padding: 18px 2px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,.88);
  font-size: 12px;
}

.auth-body { background: linear-gradient(135deg, var(--orange-500), var(--orange-700)); }
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(440px, 1.1fr);
}
.auth-brand-panel {
  padding: 38px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(150deg, rgba(43,33,120,.98), rgba(27,20,85,.98));
}
.auth-brand-panel .brand { color: #fff; }
.auth-brand-panel .brand-logo { width: 68px; height: 68px; }
.auth-brand-panel .brand strong { display: block; color: #fff; font-size: 24px; }
.auth-brand-panel .brand small { display: block; color: rgba(255,255,255,.72); }
.auth-panel-copy { margin: auto 0; }
.auth-panel-copy h1 { margin: 12px 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.05; }
.auth-panel-copy p { max-width: 540px; color: rgba(255,255,255,.76); line-height: 1.7; }
.eyebrow-light { color: #fff; background: rgba(255,255,255,.12); }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-list span {
  padding: 8px 11px;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: 12px;
}
.auth-form-panel { padding: 36px; display: grid; place-items: center; background: var(--cream); }
.login-card {
  width: min(520px, 100%);
  padding: 34px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.back-link { color: var(--navy-800); font-size: 13px; font-weight: 700; }
.login-heading { margin: 26px 0; }
.login-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 15px;
  display: grid;
  place-items: center;
  color: var(--navy-800);
  background: #fff2cf;
  border-radius: 18px;
}
.login-icon svg { width: 34px; }
.login-heading h1 { margin: 3px 0 8px; color: var(--navy-800); font-size: 32px; }
.login-heading p { margin: 0; color: var(--muted); }
.login-form { display: grid; gap: 10px; }
.login-form label { margin-top: 7px; font-size: 13px; font-weight: 800; }
.login-form input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d8d2dd;
  border-radius: 12px;
  outline: none;
}
.login-form input:focus { border-color: var(--orange-500); box-shadow: 0 0 0 4px rgba(255,148,24,.14); }
.password-field { position: relative; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  padding: 7px 9px;
  color: var(--navy-800);
  background: transparent;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}
.primary-button {
  margin-top: 12px;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(90deg, var(--navy-800), var(--navy-600));
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}
.login-help { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; font-size: 13px; }
.alert-error { color: #8f1d17; background: #fff0ef; border: 1px solid #f2c9c5; }
.alert-info { color: #214f79; background: #edf7ff; border: 1px solid #c8e5f8; }

.error-body { min-height: 100vh; padding: 24px; display: grid; place-items: center; background: var(--cream); }
.error-card { max-width: 540px; padding: 36px; text-align: center; background: #fff; border-radius: 24px; box-shadow: var(--shadow); }
.error-code { color: var(--orange-700); font-size: 62px; font-weight: 900; }
.error-card h1 { color: var(--navy-800); }
.error-card a { display: inline-block; margin-top: 12px; padding: 11px 16px; color: #fff; background: var(--navy-800); border-radius: 10px; }

@media (max-width: 900px) {
  .portal-grid, .auth-layout { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: 390px; }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 18px, 1180px); }
  .site-header { align-items: flex-start; }
  .secure-pill { display: none; }
  .brand-logo { width: 60px; height: 60px; }
  .brand-copy small { font-size: 10px; }
  .landing-main { padding-top: 34px; }
  .portal-card { min-height: 0; padding: 25px; }
  .identity-strip, .site-footer { flex-direction: column; align-items: flex-start; }
  .identity-strip { text-align: center; }
  .auth-brand-panel, .auth-form-panel { padding: 24px 18px; }
  .login-card { padding: 25px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
