:root {
  --orange-900: #b94700;
  --orange-700: #e66b00;
  --orange-500: #ff9418;
  --orange-200: #ffd08a;
  --gold: #ffc21c;
  --navy-950: #1b1455;
  --navy-800: #2b2178;
  --navy-600: #4337a5;
  --green: #228b45;
  --red: #d92d20;
  --cream: #fff8ea;
  --surface: #ffffff;
  --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; font-family: Inter, Arial, sans-serif; color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.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-radius: 50%; background: #fff; border: 3px solid var(--orange-500); 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; text-align: center; color: #fff; 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 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; max-width: 980px; margin: 0 auto; }
.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; display: grid; place-items: center; margin-bottom: 22px; 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-weight: 700; font-size: 13px; }
.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; color: #fff; background: linear-gradient(150deg, rgba(43,33,120,.98), rgba(27,20,85,.98)); display: flex; flex-direction: column; }
.auth-brand-panel .brand { color: #fff; }
.auth-brand-panel .brand-logo, .sidebar .brand-logo { width: 68px; height: 68px; }
.auth-brand-panel .brand strong { color: #fff; font-size: 24px; }
.auth-brand-panel .brand small { 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; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.85); font-size: 12px; }
.auth-form-panel { display: grid; place-items: center; padding: 36px; 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; display: grid; place-items: center; margin-bottom: 15px; 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; }

.dashboard-body { background: #f7f3ec; }
.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar { padding: 26px 18px; color: #fff; background: linear-gradient(180deg, var(--navy-950), var(--navy-800)); display: flex; flex-direction: column; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand strong { font-size: 18px; }
.sidebar-brand small { color: rgba(255,255,255,.7); font-size: 11px; }
.sidebar-nav { display: grid; gap: 8px; margin-top: 42px; }
.sidebar-nav a, .nav-placeholder { padding: 12px 13px; display: flex; align-items: center; gap: 10px; border-radius: 11px; }
.sidebar-nav a.active { background: var(--orange-500); color: #fff; font-weight: 800; }
.nav-placeholder { color: rgba(255,255,255,.68); }
.nav-placeholder small { margin-left: auto; padding: 3px 6px; background: rgba(255,255,255,.1); border-radius: 6px; font-size: 9px; }
.sidebar-logout { margin-top: auto; }
.sidebar-logout button { width: 100%; padding: 11px; color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; cursor: pointer; }
.dashboard-main { padding: 34px; }
.dashboard-header { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.dashboard-header h1 { margin: 4px 0; color: var(--navy-800); font-size: 34px; }
.dashboard-header p { margin: 0; color: var(--muted); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px 13px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.user-avatar { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--orange-500); border-radius: 10px; font-weight: 800; }
.user-chip strong, .user-chip small { display: block; }
.user-chip small { color: var(--muted); font-size: 10px; }
.welcome-banner { margin-top: 28px; padding: 30px; display: flex; justify-content: space-between; gap: 20px; color: #fff; background: linear-gradient(120deg, var(--orange-700), var(--orange-500)); border-radius: 24px; box-shadow: var(--shadow); }
.welcome-banner h2 { max-width: 760px; margin: 8px 0; font-size: 28px; }
.welcome-banner p { max-width: 800px; margin: 0; color: rgba(255,255,255,.86); }
.banner-badge, .phase-label, .coming-soon { display: inline-block; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.banner-badge { background: rgba(43,33,120,.75); }
.banner-shield svg { width: 72px; }
.module-section { margin-top: 30px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.section-heading h2 { margin: 3px 0 0; color: var(--navy-800); }
.phase-label { color: var(--navy-800); background: #eeeafe; }
.module-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.module-card { padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 8px 24px rgba(43,33,120,.06); }
.module-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--navy-800); border-radius: 12px; font-weight: 800; }
.module-card h3 { color: var(--navy-800); }
.module-card p { min-height: 86px; color: var(--muted); line-height: 1.55; font-size: 13px; }
.coming-soon { color: #9a5200; background: #fff0d2; }

.error-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; 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, .dashboard-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: 390px; }
  .dashboard-shell { display: block; }
  .sidebar { min-height: auto; }
  .sidebar-nav { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 20px; }
  .sidebar-logout { margin-top: 20px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@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, .dashboard-header, .welcome-banner, .section-heading { flex-direction: column; align-items: flex-start; }
  .identity-strip { text-align: center; }
  .module-grid, .sidebar-nav { grid-template-columns: 1fr; }
  .dashboard-main { padding: 22px 16px; }
  .auth-brand-panel, .auth-form-panel { padding: 24px 18px; }
  .login-card { padding: 25px 20px; }
}
