@font-face {
  font-family: Inter;
  src: url(inter-latin.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ink: #14283d;
  --blue: #123a5c;
  --muted: #506579;
  --amber: #efa21a;
  --line: #d5e0e8;
  --wash: #edf5fa;
  --canvas: #f4f8fb;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.55 Inter, system-ui, sans-serif;
}

a, a:visited { color: var(--blue); text-underline-offset: .2em; }
a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid #1873b9;
  outline-offset: 3px;
}
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: #fff; }
.site-header .wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-lockup { position: relative; display: block; width: clamp(180px, 30vw, 360px); }
.brand-wordmark { display: block; width: 100%; height: auto; }
.brand-emblem {
  position: absolute;
  left: 2%;
  top: 3.125%;
  width: 12%;
  height: 93.75%;
  background: #fff;
}
.brand-emblem img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav .current {
  padding-inline: 15px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.intro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(106deg, #123a5c, #0d2d48);
  color: #fff;
  padding-block: 32px 68px;
}
.intro::after {
  content: "";
  position: absolute;
  inset: 0 0 0 42%;
  background: radial-gradient(circle, #94c8ee 1px, transparent 1.5px) 0 0 / 17px 17px;
  opacity: .27;
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}
.intro .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #e1eef8; }
.crumbs a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
.crumbs span[aria-hidden="true"] { color: #a9c5db; }
.intro h1 { color: #fff; border: 0; padding: 0; font-weight: 750; margin: 4px 0 0; font-size: clamp(36px, 4.1vw, 56px); line-height: 1.08; letter-spacing: -.045em; }
.intro h1::after { content: ""; display: block; width: 38px; height: 4px; background: var(--amber); margin-top: 20px; border-radius: 3px; }

#content_container.portal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
  background: #fff;
  color: var(--ink);
  width: min(1120px, calc(100% - 64px));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: -32px;
  box-shadow: 0 14px 36px #123a5c0e;
}
#content_container.portal #content_left { float: none; width: auto; min-width: 0; padding: 44px clamp(28px, 4.1vw, 60px); }
.portal h2 { margin: 0; padding: 0; border: 0; color: var(--ink); font-size: 28px; font-weight: 750; line-height: 1.2; letter-spacing: -.035em; }
.intro-text { color: var(--muted); margin: 9px 0 30px; max-width: 44ch; }
.fields { max-width: 480px; }
.field { display: grid; gap: 7px; margin-bottom: 17px; font-size: 14px; font-weight: 650; }
.field input {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #a9bccc;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: 16px Inter, system-ui, sans-serif;
}
.login-options { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 14px; margin: -5px 0 10px; font-size: 14px; }
.remember, .forgot { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; }
.remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.forgot, .register a { font-weight: 650; }
.submit {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--amber);
  color: var(--ink);
  font: 750 15px Inter, system-ui, sans-serif;
}
.register { margin: 13px 0 0; color: var(--muted); font-size: 14px; }
.register a { display: inline-flex; min-height: 44px; align-items: center; margin-left: 3px; }
#content_container.portal #side_menu { float: none; width: auto; min-width: 0; padding: 41px 27px 36px; background: var(--wash); border-left: 1px solid var(--line); }
.portal-aside h2 { margin: 0 5px 13px; font-size: 18px; letter-spacing: -.02em; }
.quick-nav { display: grid; }
.quick-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 5px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.quick-nav a:last-child { border-bottom: 0; }
.quick-nav a:hover { text-decoration: underline; }
.quick-nav span { color: #446885; font-size: 19px; line-height: 1; }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 14px;
  min-height: 86px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 650; }

@media (max-width: 850px) {
  .site-nav { gap: 16px; }
  .site-nav .optional { display: none; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .site-header .wrap { min-height: 68px; }
  .brand-lockup { width: min(56vw, 245px); }
  .site-nav .home, .site-nav .current { display: none; }
  .intro { padding-block: 16px 52px; }
  .intro::after { inset-inline-start: 35%; opacity: .18; }
  .intro h1::after { margin-top: 14px; }
  #content_container.portal { width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr); margin-top: -28px; }
  #content_container.portal #content_left { float: none; width: auto; min-width: 0; padding: 26px 20px 16px; }
  .portal h2 { font-size: 25px; }
  .intro-text { margin-bottom: 23px; }
  .login-options { margin-bottom: 6px; }
  #content_container.portal #side_menu { float: none; width: auto; min-width: 0; padding: 23px 20px 19px; border-left: 0; border-top: 1px solid var(--line); }
  .portal-aside h2 { margin-inline: 0; margin-bottom: 8px; }
  .quick-nav a { padding-inline: 0; }
  .site-footer .wrap { padding-block: 16px 8px; min-height: 0; }
}

/* The legacy wrapper keeps these IDs. This stylesheet is loaded on auth screens only. */
#content_container.portal > .clear { display: none; }
.crumbs a, .crumbs a:visited { color: inherit; }
#content_container.portal p { line-height: 1.55; }
.bee-login .errorbox { margin-bottom: 16px; }
.submit { cursor: pointer; }
.submit:hover { background: #f6b13a; }

/* Keep both legacy reset templates intact, including the strength meter and reset key. */
#content_left > form:not(#frmlogin) input[type="text"],
#content_left > form:not(#frmlogin) input[type="password"] {
  max-width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #a9bccc;
  border-radius: 7px;
  font: 16px Inter, system-ui, sans-serif;
}
#content_left > form:not(#frmlogin) input[type="submit"] {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 7px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}
#content_left > form.form-horizontal table { width: 100%; }
@media (max-width: 680px) {
  #content_left > form.form-horizontal table,
  #content_left > form.form-horizontal tbody,
  #content_left > form.form-horizontal tr,
  #content_left > form.form-horizontal td {
    display: block;
    width: 100%;
  }
}
