:root{
  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#172033;
  --muted:#6b7280;
  --line:#dbe3ef;
  --primary:#f5b301;
  --primary-dark:#d29300;
  --danger:#dc2626;
  --success:#15803d;
  --shadow:0 24px 70px rgba(15,23,42,.12);
  --radius:22px;
  font-family: Arial, Helvetica, sans-serif;
}

*{box-sizing:border-box}


.brand-logo{
  width:48px;
  height:48px;
  border-radius:16px;
  object-fit:cover;
}


body{
  margin:0;
  color:var(--text);
  background:var(--bg);
}

a{
  color:#1d4ed8;
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

.bee-auth-page{
  min-height:100vh;
  background:radial-gradient(circle at top left,#fff6d7 0,#f4f7fb 40%,#eaf0f8 100%);
}

.auth-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}

.wide-shell{
  max-width:1120px;
  margin:0 auto;
  padding:26px;
}

.auth-card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(219,227,239,.95);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:26px;
}

.wide-card{
  padding:28px;
}

.side-card{
  height:max-content;
}

.brand-row{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:22px;
}

.brand-row img{
  width:58px;
  height:58px;
  border-radius:16px;
  object-fit:cover;
}

.brand-row h1,
.page-head h1{
  margin:0;
  font-size:30px;
}

.brand-row p,
.page-head p,
.muted{
  margin:5px 0 0;
  color:var(--muted);
}

.page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:20px;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.form-grid.single{
  grid-template-columns:1fr;
}

.full{
  grid-column:1/-1;
}

label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-weight:700;
  font-size:13px;
  color:#334155;
}

input,
select,
textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 13px;
  font:inherit;
  background:#fff;
  color:var(--text);
  outline:none;
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(245,179,1,.15);
}

.phone-row{
  display:grid;
  grid-template-columns:64px 1fr;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}

.phone-row span{
  display:grid;
  place-items:center;
  background:#f8fafc;
  border-right:1px solid var(--line);
  font-weight:800;
}

.phone-row input{
  border:0;
  border-radius:0;
  box-shadow:none!important;
}

.btn{
  border:0;
  border-radius:15px;
  padding:12px 16px;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
}

.btn.primary{
  background:var(--primary);
  color:#1f2937;
}

.btn.primary:hover{
  background:var(--primary-dark);
  text-decoration:none;
}

.btn.ghost{
  background:#eef2f7;
  color:#1f2937;
}

.btn.danger{
  background:var(--danger);
  color:#fff;
}

.btn:hover{
  filter:brightness(.98);
}

.auth-links{
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:14px;
}

.actions-right{
  display:flex;
  justify-content:flex-end;
}

.actions-between{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.alert{
  padding:13px 14px;
  border-radius:14px;
  margin:0 0 18px;
  font-weight:700;
}

.alert.error{
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
}

.alert.success{
  background:#dcfce7;
  color:#166534;
  border:1px solid #bbf7d0;
}

.alert.info{
  background:#dbeafe;
  color:#1e40af;
  border:1px solid #bfdbfe;
}

.portal-page{
  min-height:100vh;
  background:#eef3f8;
}

.portal-topbar{
  height:66px;
  background:#172033;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 24px;
  box-shadow:0 12px 30px rgba(15,23,42,.25);
}

.portal-topbar div{
  display:flex;
  flex-direction:column;
}

.portal-topbar span{
  font-size:12px;
  color:#cbd5e1;
}

.portal-topbar nav{
  display:flex;
  gap:14px;
}

.portal-topbar a{
  color:#fff;
  font-weight:700;
}

.portal-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:20px;
}

.status-pill{
  background:#eef2f7;
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 13px;
  font-size:13px;
  font-weight:800;
}

.recent-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.recent-item{
  border:1px solid var(--line);
  border-radius:15px;
  padding:12px;
  background:#f8fafc;
}

.recent-item span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}

/* Landing homepage */

.bee-landing-page,
.bee-policy-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(245,179,1,.28), transparent 36%),
    radial-gradient(circle at 90% 8%, rgba(220,38,38,.16), transparent 30%),
    linear-gradient(135deg,#fffaf0 0%,#f4f7fb 45%,#eaf0f8 100%);
}

.landing-nav{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.landing-brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--text);
}

.landing-brand:hover{
  text-decoration:none;
}

.brand-mark{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--primary),#ffd86b);
  color:#172033;
  font-size:24px;
  font-weight:1000;
  box-shadow:0 14px 28px rgba(245,179,1,.28);
}

.landing-brand strong{
  display:block;
  font-size:20px;
  line-height:1;
  color:#172033;
}

.landing-brand span{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}

.landing-nav nav{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.landing-nav nav a{
  color:#172033;
  font-weight:800;
  padding:9px 12px;
  border-radius:999px;
}

.landing-nav nav a:hover{
  background:#fff;
  text-decoration:none;
  box-shadow:0 10px 20px rgba(15,23,42,.08);
}

.landing-main{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  padding:38px 0 30px;
}

.landing-hero{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);
  gap:28px;
  align-items:center;
  min-height:calc(100vh - 210px);
}

.eyebrow{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  background:#fff7d6;
  border:1px solid rgba(245,179,1,.35);
  color:#8a5a00;
  padding:9px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  margin-bottom:18px;
}

.hero-copy h1{
  margin:0;
  font-size:clamp(44px, 7vw, 78px);
  line-height:.96;
  letter-spacing:-.05em;
  color:#111827;
}

.hero-lead{
  margin:22px 0 0;
  font-size:18px;
  line-height:1.7;
  color:#4b5563;
  max-width:720px;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:28px;
}

.landing-btn{
  min-height:50px;
  padding-left:22px;
  padding-right:22px;
  text-decoration:none;
}

.hero-note{
  margin-top:16px;
  color:#6b7280;
  font-size:14px;
}

.hero-card{
  position:relative;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(219,227,239,.95);
  box-shadow:var(--shadow);
  border-radius:32px;
  padding:28px;
  overflow:hidden;
}

.hero-card::before{
  content:"";
  position:absolute;
  inset:auto -60px -90px auto;
  width:220px;
  height:220px;
  border-radius:999px;
  background:rgba(245,179,1,.22);
}

.alert-pulse{
  width:94px;
  height:94px;
  border-radius:999px;
  background:#fee2e2;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  position:relative;
}

.alert-pulse::before,
.alert-pulse::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  border:2px solid rgba(220,38,38,.45);
  animation:pulseRing 1.8s infinite;
}

.alert-pulse::after{
  animation-delay:.7s;
}

.alert-pulse span{
  width:42px;
  height:42px;
  border-radius:999px;
  background:var(--danger);
  box-shadow:0 0 0 10px rgba(220,38,38,.14);
}

@keyframes pulseRing{
  0%{transform:scale(.8);opacity:.8}
  100%{transform:scale(1.45);opacity:0}
}

.hero-card h2{
  margin:0;
  font-size:28px;
  color:#111827;
}

.hero-card p{
  margin:12px 0 0;
  color:#4b5563;
  line-height:1.65;
}

.quick-grid{
  position:relative;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-top:22px;
}

.quick-grid div{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:18px;
  padding:15px;
}

.quick-grid strong{
  display:block;
  color:var(--danger);
  font-size:20px;
  margin-bottom:6px;
}

.quick-grid span{
  display:block;
  color:#334155;
  font-size:13px;
  font-weight:800;
}

.landing-features{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-top:22px;
}

.landing-features article{
  background:rgba(255,255,255,.88);
  border:1px solid var(--line);
  border-radius:24px;
  padding:20px;
  box-shadow:0 14px 38px rgba(15,23,42,.07);
}

.feature-icon{
  width:46px;
  height:46px;
  border-radius:16px;
  background:#fff7d6;
  display:grid;
  place-items:center;
  font-size:22px;
  margin-bottom:12px;
}

.landing-features h3{
  margin:0;
  font-size:17px;
  color:#111827;
}

.landing-features p{
  margin:9px 0 0;
  color:#6b7280;
  line-height:1.55;
  font-size:14px;
}

.landing-cta{
  margin-top:18px;
  background:#172033;
  color:#fff;
  border-radius:28px;
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  box-shadow:0 20px 50px rgba(15,23,42,.18);
}

.landing-cta h2{
  margin:0;
  font-size:26px;
}

.landing-cta p{
  margin:8px 0 0;
  color:#cbd5e1;
}

.landing-footer{
  width:min(1180px, calc(100% - 32px));
  margin:20px auto 0;
  border-top:1px solid rgba(15,23,42,.10);
  padding:22px 0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.landing-footer strong{
  display:block;
  color:#172033;
}

.landing-footer span{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:4px;
}

.landing-footer nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.landing-footer a{
  font-weight:800;
  color:#334155;
}

/* Privacy policy */

.policy-shell{
  width:min(980px, calc(100% - 32px));
  margin:0 auto;
  padding:34px 0 30px;
}

.policy-hero{
  background:rgba(255,255,255,.88);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:32px;
  padding:34px;
  margin-bottom:18px;
}

.policy-hero h1{
  margin:0;
  font-size:clamp(34px, 5vw, 58px);
  letter-spacing:-.04em;
  color:#111827;
}

.policy-hero p{
  margin:14px 0 0;
  color:#4b5563;
  line-height:1.75;
  font-size:16px;
}

.policy-meta{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.policy-meta span{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 12px;
  font-size:13px;
  color:#334155;
}

.policy-card{
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius:32px;
  padding:28px;
  box-shadow:0 16px 48px rgba(15,23,42,.08);
}

.policy-card article{
  padding:22px 0;
  border-bottom:1px solid var(--line);
}

.policy-card article:first-child{
  padding-top:0;
}

.policy-card article:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.policy-card h2{
  margin:0 0 10px;
  color:#111827;
  font-size:22px;
}

.policy-card p,
.policy-card li{
  color:#4b5563;
  line-height:1.75;
}

.policy-card p{
  margin:10px 0;
}

.policy-card ul{
  margin:10px 0 0;
  padding-left:22px;
}

@media(max-width:1020px){
  .landing-hero{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .landing-features{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:820px){
  .form-grid,
  .portal-grid{
    grid-template-columns:1fr;
  }

  .page-head{
    flex-direction:column;
  }

  .actions-right,
  .actions-between{
    justify-content:stretch;
  }

  .btn{
    width:100%;
  }

  .portal-topbar{
    height:auto;
    gap:10px;
    padding:14px 18px;
    align-items:flex-start;
    flex-direction:column;
  }

  .wide-shell{
    padding:16px;
  }

  .auth-card{
    padding:20px;
  }

  .brand-row h1,
  .page-head h1{
    font-size:25px;
  }

  .landing-nav{
    height:auto;
    padding:16px 0;
    align-items:flex-start;
    flex-direction:column;
  }

  .landing-nav nav{
    justify-content:flex-start;
  }

  .landing-main{
    padding-top:18px;
  }

  .hero-actions{
    flex-direction:column;
  }

  .quick-grid,
  .landing-features{
    grid-template-columns:1fr;
  }

  .landing-cta,
  .landing-footer{
    align-items:flex-start;
    flex-direction:column;
  }

  .landing-footer nav{
    justify-content:flex-start;
  }

  .policy-hero,
  .policy-card,
  .hero-card{
    border-radius:24px;
    padding:22px;
  }
}