:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #f3f6f8;
  color: #17222b;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: var(--brand-color);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-color);
}

.environment-banner {
  position: relative;
  z-index: 20;
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 8px 20px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 3px 14px rgba(16, 24, 32, 0.2);
}

.environment-banner-sandbox {
  background: #a63d16;
}

.environment-banner-qa {
  background: #6741b7;
}

.landing-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
}

.has-environment-banner .landing-shell,
.has-environment-banner .brand-panel,
.has-environment-banner .signin-panel {
  min-height: calc(100vh - 42px);
}

.brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(38px, 6vw, 86px);
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--accent-color) 76%, white 24%) 0, transparent 32%),
    radial-gradient(circle at 6% 92%, color-mix(in srgb, var(--accent-color) 62%, transparent) 0, transparent 30%),
    linear-gradient(145deg, color-mix(in srgb, var(--brand-color) 88%, #07141d 12%), var(--brand-color));
}

.brand-panel::before,
.brand-panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.brand-panel::before {
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom right, black, transparent 76%);
}

.brand-panel::after {
  width: min(34vw, 480px);
  aspect-ratio: 1;
  right: -16%;
  bottom: -18%;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(255,255,255,.035), 0 0 0 144px rgba(255,255,255,.025);
}

.brand-content,
.brand-footer {
  position: relative;
  z-index: 1;
}

.brand-content {
  width: min(100%, 660px);
  margin: auto 0;
}

.logo-frame {
  display: inline-flex;
  min-width: 88px;
  min-height: 74px;
  max-width: min(380px, 100%);
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(48px, 9vh, 96px);
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(5, 19, 30, 0.22);
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 330px;
  height: auto;
  max-height: 104px;
  object-fit: contain;
}

.eyebrow,
.portal-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(255,255,255,.72);
}

.brand-panel h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 5.4vw, 74px);
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

body[data-tenant="lhf"] .brand-panel h1 {
  font-size: clamp(36px, 4vw, 58px);
}

body[data-tenant="lhf"] .brand-panel h1 .company-name {
  display: inline-block;
  white-space: nowrap;
}

.brand-description {
  max-width: 610px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
}

.announcement {
  width: min(100%, 610px);
  margin: 28px 0 0;
  border: 1px solid rgba(255,255,255,.55);
  border-left: 5px solid #fff;
  border-radius: 12px;
  padding: 16px 18px;
  color: #fff;
  background: rgba(5,19,30,.3);
  box-shadow: 0 14px 34px rgba(5,19,30,.2);
}

.announcement-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.announcement p {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
  white-space: pre-line;
}

.announcement a {
  color: #fff;
  font-weight: 800;
  text-decoration-thickness: 1px;
}

.announcement a:hover,
.announcement a:focus-visible {
  color: #fff;
  text-decoration-thickness: 2px;
}

.maintenance-notice {
  border-color: #ffe2a0;
  border-left-color: #f2ad24;
  color: #3c2900;
  background: #fff5d9;
  box-shadow: 0 16px 38px rgba(5,19,30,.28);
}

.maintenance-notice .announcement-label {
  color: #825900;
}

.brand-highlights {
  display: grid;
  margin: 36px 0 0;
  padding: 0;
  gap: 14px;
  list-style: none;
  color: rgba(255,255,255,.9);
  font-size: 15px;
}

.brand-highlights li {
  display: flex;
  align-items: center;
  gap: 11px;
}

.highlight-check {
  position: relative;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

.highlight-check::after {
  position: absolute;
  width: 6px;
  height: 3px;
  top: 6px;
  left: 6px;
  content: "";
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(-45deg);
}

.brand-footer {
  margin: 60px 0 0;
  color: rgba(255,255,255,.6);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.brand-footer a {
  color: rgba(255,255,255,.9);
  font-weight: 700;
  text-decoration: none;
}

.brand-footer a:hover,
.brand-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signin-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(28px, 5vw, 76px);
  background:
    radial-gradient(circle at 84% 11%, color-mix(in srgb, var(--accent-color) 7%, transparent), transparent 26%),
    #f5f7f8;
}

.signin-card {
  width: min(100%, 430px);
}

/* Atlas mirrors the full-page background and floating login card used by its portal. */
body[data-tenant="atlas"] .landing-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(250,166,67,.12), transparent 25%),
    radial-gradient(circle at bottom left, rgba(20,115,147,.18), transparent 30%),
    linear-gradient(135deg, #120d08, #23150c 45%, #0f2530);
}

body[data-tenant="atlas"] .landing-shell::before,
body[data-tenant="atlas"] .landing-shell::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
}

body[data-tenant="atlas"] .landing-shell::before {
  background-image:
    linear-gradient(rgba(250,166,67,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,166,67,.06) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0,0,0,.3));
  mask-image: linear-gradient(to bottom, #000, rgba(0,0,0,.3));
}

body[data-tenant="atlas"] .landing-shell::after {
  inset: -10%;
  opacity: .35;
  background:
    radial-gradient(circle at 90% 5%, rgba(250,166,67,.9) 0, transparent 31%),
    radial-gradient(circle at 7% 92%, rgba(20,115,147,.85) 0, transparent 27%),
    radial-gradient(circle at 52% 48%, rgba(255,255,255,.18) 0, transparent 19%);
  filter: blur(80px);
}

body[data-tenant="atlas"] .brand-panel,
body[data-tenant="atlas"] .signin-panel {
  z-index: 1;
  background: transparent;
}

body[data-tenant="atlas"] .brand-panel::before,
body[data-tenant="atlas"] .brand-panel::after {
  display: none;
}

body[data-tenant="atlas"] .brand-panel h1 {
  color: #d8dee9;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: .14em;
  line-height: 1.15;
  text-transform: uppercase;
}

body[data-tenant="atlas"] .eyebrow {
  display: inline-block;
  margin-bottom: 2rem;
  border: 1px solid rgba(250,166,67,.28);
  border-radius: 999px;
  padding: .55rem 1.35rem;
  color: #ffd39d;
  background: rgba(250,166,67,.14);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.5;
}

body[data-tenant="atlas"] .brand-panel h1 .company-name {
  display: block;
  margin-top: .65rem;
  color: var(--brand-color);
  background: linear-gradient(135deg, #fff7ed, var(--brand-color) 45%, var(--accent-color));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.05;
  -webkit-text-fill-color: transparent;
}

body[data-tenant="atlas"] .signin-card {
  padding: clamp(26px, 4vw, 34px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(11,17,26,.8);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

body[data-tenant="atlas"] .portal-label {
  color: #ffd39d;
}

body[data-tenant="atlas"] .signin-heading h2 {
  color: #f8fbff;
}

body[data-tenant="atlas"] .signin-heading > p:last-child {
  color: #9dafc0;
}

body[data-tenant="atlas"] .field-group label {
  color: #d9e2ec;
}

body[data-tenant="atlas"] .field-group input {
  border-color: rgba(255,255,255,.14);
  color: #f8fbff;
  background: rgba(255,255,255,.06);
  box-shadow: none;
}

body[data-tenant="atlas"] .field-group input:hover {
  border-color: rgba(255,255,255,.28);
}

body[data-tenant="atlas"] .field-group input:focus {
  border-color: rgba(250,166,67,.7);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px rgba(250,166,67,.14);
}

body[data-tenant="atlas"] .field-label-row a,
body[data-tenant="atlas"] .password-toggle,
body[data-tenant="atlas"] .support-block a {
  color: #ffd39d;
}

body[data-tenant="atlas"] .password-toggle:hover,
body[data-tenant="atlas"] .password-toggle:focus-visible {
  background: rgba(250,166,67,.12);
}

body[data-tenant="atlas"] .signin-button {
  background: linear-gradient(135deg, var(--brand-color), #d8791b);
  box-shadow: 0 16px 36px rgba(216,121,27,.28);
}

body[data-tenant="atlas"] .signin-button:hover {
  background: linear-gradient(135deg, #ffb65f, #d8791b);
  box-shadow: 0 22px 40px rgba(216,121,27,.36);
}

body[data-tenant="atlas"] .support-block,
body[data-tenant="atlas"] .security-note {
  color: #8fa0b2;
}

body[data-tenant="atlas"] .policy-links a {
  color: #9dafc0;
}

body[data-tenant="atlas"] .policy-links a:hover,
body[data-tenant="atlas"] .policy-links a:focus-visible {
  color: #6fc5df;
}

body[data-tenant="atlas"] .form-alert-error {
  border-color: rgba(248,113,113,.28);
  color: #fecaca;
  background: rgba(127,29,29,.35);
}

body[data-tenant="atlas"] .form-alert-info {
  border-color: rgba(111,197,223,.32);
  color: #c7edf8;
  background: rgba(20,115,147,.22);
}

.signin-heading {
  margin-bottom: 34px;
}

.portal-label {
  color: var(--accent-color);
}

.signin-heading h2 {
  margin: 0;
  color: #16232d;
  font-size: clamp(34px, 4vw, 45px);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.signin-heading > p:last-child {
  margin: 10px 0 0;
  color: #63717c;
  font-size: 16px;
}

.field-group {
  margin-bottom: 22px;
}

.field-group label {
  display: block;
  margin-bottom: 9px;
  color: #26343e;
  font-size: 14px;
  font-weight: 700;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.field-label-row a {
  font-size: 13px;
}

.field-group input {
  width: 100%;
  height: 54px;
  border: 1px solid #c9d2d8;
  border-radius: 10px;
  outline: none;
  padding: 0 15px;
  color: #17222b;
  background: #fff;
  box-shadow: 0 2px 8px rgba(23,34,43,.035);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.field-group input:hover {
  border-color: #aebbc4;
}

.field-group input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 15%, transparent);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 72px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  min-width: 58px;
  border: 0;
  border-radius: 7px;
  padding: 8px 7px;
  color: var(--brand-color);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: color-mix(in srgb, var(--accent-color) 9%, white);
  outline: none;
}

.signin-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  padding: 14px 20px;
  color: #fff;
  background: var(--brand-color);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-color) 24%, transparent);
  cursor: pointer;
  font-weight: 750;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.signin-button:hover {
  background: color-mix(in srgb, var(--brand-color) 88%, black);
  box-shadow: 0 15px 32px color-mix(in srgb, var(--brand-color) 28%, transparent);
  transform: translateY(-1px);
}

.signin-button:active {
  transform: translateY(0);
}

.signin-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color) 36%, transparent);
  outline-offset: 3px;
}

.form-alert {
  margin: 0 0 24px;
  border: 1px solid;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.form-alert[hidden] {
  display: none;
}

.form-alert-error {
  border-color: #e8b5b0;
  color: #85251d;
  background: #fff1ef;
}

.form-alert-info {
  border-color: #b6d9e9;
  color: #215d76;
  background: #eff9fd;
}

.support-block {
  display: flex;
  justify-content: center;
  margin-top: 34px;
  gap: 6px;
  color: #687680;
  font-size: 13px;
}

.support-block a {
  white-space: nowrap;
}

.security-note {
  margin: 26px 0 0;
  color: #8a959d;
  font-size: 12px;
  text-align: center;
}

.security-note span {
  margin-right: 4px;
  filter: grayscale(1);
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
  gap: 6px 16px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.policy-links a {
  color: #526875;
  text-underline-offset: 2px;
}

.policy-links a:hover,
.policy-links a:focus-visible {
  color: var(--accent-color);
}

@media (max-width: 900px) {
  .landing-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel,
  .signin-panel {
    min-height: auto;
  }

  .brand-panel {
    padding: 38px clamp(24px, 7vw, 60px) 48px;
  }

  .brand-content {
    margin: 0;
  }

  .logo-frame {
    margin-bottom: 50px;
  }

  .brand-panel h1 {
    max-width: 650px;
    font-size: clamp(40px, 9vw, 68px);
  }

  .brand-description {
    max-width: 640px;
  }

  .brand-footer {
    margin-top: 46px;
  }

  .signin-panel {
    padding: 64px 24px 74px;
  }
}

@media (max-width: 520px) {
  body[data-tenant="lhf"] .brand-panel h1 {
    font-size: clamp(24px, 7.2vw, 36px);
  }

  .brand-panel {
    padding: 26px 22px 36px;
  }

  .logo-frame {
    min-height: 64px;
    margin-bottom: 38px;
    padding: 10px 14px;
  }

  .brand-logo {
    max-width: 250px;
    max-height: 82px;
  }

  .brand-highlights {
    display: none;
  }

  .brand-footer {
    margin-top: 34px;
  }

  .signin-panel {
    padding: 48px 22px 54px;
  }

  body[data-tenant="atlas"] .signin-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .signin-heading {
    margin-bottom: 28px;
  }

  .support-block {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
