.public-page { min-height: 100dvh; color: #edf5ff; background: #061326; }
.auth-layout {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(min-content, 1fr);
  place-items: center;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #061326 url("../images/marh-login-background.png") center center / cover no-repeat;
}
.auth-layout::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: #03102412;
}
.auth-topbar, .auth-story, .auth-footer { display: none; }
.auth-topbar, .auth-story, .auth-main, .auth-footer { position: relative; z-index: 1; }
.auth-footer { display: none; }
.auth-topbar { align-items: center; justify-content: space-between; }
.auth-topbar .brand {
  display: block;
  width: min(300px, calc(100vw - 200px));
  height: 42px;
  background: url("../images/arcorp-login-brand.png") left center / contain no-repeat;
}
.auth-topbar .brand-mark, .auth-topbar .brand-copy { display: none; }
.auth-brand-lockup { display: block; width: min(250px, calc(100vw - 170px)); height: auto; }
.auth-language { display: inline-flex; align-items: center; gap: 10px; color: #dbe9fb; font-size: .78rem; white-space: nowrap; }
.auth-language svg { width: 20px; height: 20px; fill: none; stroke: #9fc9fa; stroke-width: 1.7; }
.auth-language .auth-chevron { width: 15px; height: 15px; }
.auth-story {
  align-self: center;
  justify-self: center;
  width: min(100%, 500px);
  padding: 28px 0;
}
.auth-story-kicker { margin: 0 0 17px; color: #8eadd3; font-size: .7rem; font-weight: 700; letter-spacing: .17em; }
.auth-story h2 { margin: 0; color: #d8e8ff; font-size: clamp(3.4rem, 5.5vw, 5.2rem); font-weight: 720; line-height: .99; letter-spacing: -.055em; }
.auth-story h2 span { color: #1682ff; }
.auth-story-rule { display: block; width: 42px; height: 2px; margin: 24px 0 27px; background: #1682ff; box-shadow: 0 0 14px #1682ff8c; }
.auth-feature-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.auth-feature-list li { display: flex; align-items: center; gap: 15px; }
.auth-feature-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #1682ff4d; border-radius: 13px; background: linear-gradient(145deg, #0b5ed53d, #0a2c5366); box-shadow: inset 0 1px 0 #c7e8ff12; color: #53a6ff; }
.auth-feature-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-feature-list li > span:last-child { display: grid; gap: 4px; }
.auth-feature-list strong { color: #dbe9fb; font-size: .92rem; font-weight: 650; }
.auth-feature-list small { color: #94adce; font-size: .78rem; }
.auth-story-signoff { margin-top: 38px; }
.auth-story-signoff .auth-story-rule { margin: 0 0 15px; }
.auth-story-signoff strong, .auth-story-signoff small { display: block; }
.auth-story-signoff strong { color: #d6e7ff; font-size: .82rem; }
.auth-story-signoff small { margin-top: 6px; color: #91a9c8; font-size: .72rem; }
.auth-story-signoff small span { padding: 0 4px; color: #1682ff; }
.auth-main {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: max(44.8vw, 67.2dvh);
  min-height: max(78.9dvh, 52.6vw);
  aspect-ratio: 516 / 606;
  display: flex;
  align-items: center;
  padding: max(24px, 3.33dvh) max(24px, 4.43vw);
  border: 1px solid #38aaff;
  border-radius: 20px;
  background: linear-gradient(150deg, #0b2039 0%, #08182e 72%, #091c33 100%);
  box-shadow: 0 0 0 1px #047dff30, 0 0 34px #0785ff70, inset 0 1px 0 #c7e8ff22, 0 32px 85px #02091683;
}
.auth-card { width: 100%; margin: 0; padding: 0; }
.auth-card-heading { margin-bottom: max(14px, .97vw); text-align: center; }
.auth-card-logo { width: max(92px, 7.85vw); height: max(78px, 6.67vw); margin: -5px 0 -3px; fill: #0878ff; filter: drop-shadow(0 0 12px #0878ff76); }
.auth-card-heading h1 { margin: 0; color: #f0f6ff; font-size: max(2rem, 2.78vw); line-height: 1.1; letter-spacing: -.045em; }
.auth-card-heading h1 span { color: #0878ff; }
.auth-card-heading > p { margin: 0; color: #a9c1e0; font-size: max(.86rem, 1.19vw); line-height: 1.5; }
.auth-card-heading .auth-welcome { margin-top: max(8px, .56vw); color: #f0f6ff; font-size: max(1.08rem, 1.5vw); font-weight: 650; }
.auth-card-heading .auth-intro { color: #a9c1e0; font-size: max(.82rem, 1.14vw); }
.auth-card .eyebrow { display: none; }
.auth-card form { display: grid; gap: max(7px, .61vw); }
.auth-card .field { position: relative; display: block; min-width: 0; margin: 0; }
.auth-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.auth-card .field-error { display: block; margin: 3px 4px 0; color: #ffb4b4; font-size: .68rem; }
.auth-card .field-error:empty { display: none; }
.password-visibility-slash[hidden] { display: none; }
.auth-card .alert {
  margin: 0;
  color: #ffd1d1;
  border-color: #e0747466;
  background: #711e283d;
  font-size: .78rem;
}
.auth-card .alert ul { margin-bottom: 0; }
.auth-company-field {
  min-height: max(35px, 3.04vw);
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #87a9d966;
  border-radius: 8px;
  background: linear-gradient(100deg, #172d49, #10233b);
}
.auth-company-field label { color: #cad9ed; font-size: max(.68rem, .94vw); font-weight: 650; }
.auth-card .auth-company-field input {
  width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 5px 4px;
  color: #eff6ff;
  border: 0;
  border-left: 1px solid #87a9d94d;
  border-radius: 0;
  background: transparent;
  font-size: max(.69rem, .95vw);
}
.auth-card .auth-company-field input::placeholder { color: #a5bad5; opacity: 1; }
.auth-card .auth-company-field input:focus { outline: 2px solid #1694ff; outline-offset: 1px; }
.auth-login-field { height: max(47px, 4.08vw); }
.auth-login-field > input {
  width: 100%;
  height: max(47px, 4.08vw);
  padding: 10px 46px 10px 47px;
  color: #eff6ff;
  border: 1px solid #87a9d966;
  border-radius: 9px;
  background: linear-gradient(100deg, #172d49, #10233b);
  box-shadow: inset 0 1px 4px #020b1833;
  font-size: max(.84rem, 1.16vw);
}
.auth-login-field > input::placeholder { color: #a5bad5; opacity: 1; }
.auth-login-field > input:hover { border-color: #8fc9ff; }
.auth-login-field > input:focus { outline: 2px solid #1694ff; outline-offset: 2px; border-color: #64bdff; }
.auth-card .field input[aria-invalid="true"] { border-color: #ff9090; }
.auth-input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  color: #c4d7f1;
  transform: translateY(-50%);
  pointer-events: none;
}
.auth-input-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-field { position: relative !important; }
.password-field > input { padding-right: 48px; }
.auth-card .password-toggle {
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  min-width: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #b8cbe4;
  font-size: .7rem;
}
.auth-card .password-toggle:hover { color: white; background: #4089d52b; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: max(26px, 2.26vw); color: #d2def0; font-size: max(.69rem, .95vw); }
.auth-remember { display: inline-flex; align-items: center; gap: 9px; }
.auth-checkbox { width: 18px; height: 18px; flex: 0 0 auto; border: 1.5px solid #c0d3ec; border-radius: 3px; background: #10223b; }
.auth-forgot { color: #12aaff; font-weight: 600; }
.auth-card .button-primary {
  min-height: max(52px, 4.52vw);
  margin-top: 0;
  border-radius: 9px;
  background: linear-gradient(100deg, #086bfa, #075df3);
  box-shadow: 0 7px 22px #006bff4d, inset 0 1px 0 #ffffff38;
  color: #fff;
  font-size: max(.94rem, 1.3vw);
}
.auth-card .button-primary:hover { background: linear-gradient(100deg, #1684ff, #0969ff); box-shadow: 0 8px 26px #007bff70, inset 0 1px 0 #ffffff45; }
.auth-card .button-arrow { margin: 0; font-size: 1.35rem; }
.auth-card .submit-status { min-height: 0; margin: 0; color: #aac3e3; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: max(8px, .69vw) 0; color: #d2def0; font-size: .75rem; }
.auth-divider span:first-child, .auth-divider span:last-child { height: 1px; flex: 1; background: #81a5d24d; }
.auth-branch {
  width: min(max(244px, 21.18vw), 100%);
  min-height: max(40px, 3.47vw);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  border: 1px solid #87a9d966;
  border-radius: 9px;
  background: linear-gradient(100deg, #112641, #0c1d34);
  color: #e8f1ff;
  font-size: max(.7rem, .97vw);
  font-weight: 600;
}
.auth-branch svg { width: 20px; height: 20px; fill: none; stroke: #e0ecfb; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: max(17px, 1.18vw) 0 0;
  color: #afc3de;
  font-size: max(.66rem, .92vw);
  line-height: 1.45;
  text-align: center;
}
.auth-footnote svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: #a9cfff; stroke-width: 1.7; }
.auth-footer { grid-column: 1 / -1; display: none; align-items: center; justify-content: space-between; color: #96afce; font-size: .68rem; }
.auth-footer-meta { display: inline-flex; align-items: center; gap: 11px; }
.auth-footer-meta span[aria-hidden="true"] { color: #55708f; }
.error-page { min-height: 100dvh; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; }
.error-card { max-width: 560px; padding: 36px; border: 1px solid #38aaff77; border-radius: 20px; background: #0b2039ed; box-shadow: 0 0 30px #0785ff40; color: #edf5ff; text-align: center; }
.error-card > p { color: #a9c1e0; }
.error-card .button-row { justify-content: center; margin-top: 28px; }
@media (max-width: 1180px) and (min-width: 761px) {
  .auth-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 76px minmax(min-content, 1fr) 52px;
    padding: 0 clamp(28px, 4vw, 64px);
    background: radial-gradient(ellipse at 50% 42%, #102b4d 0, #091b34 46%, #061326 82%);
  }
  .auth-topbar { grid-column: 1; grid-row: 1; display: flex; border-bottom: 1px solid #9bb8dc1a; }
  .auth-story { display: none; }
  .auth-main {
    grid-column: 1;
    grid-row: 2;
    width: min(516px, calc(100vw - 56px));
    min-height: 606px;
    aspect-ratio: auto;
    padding: 24px clamp(24px, 5vw, 51px) 20px;
  }
  .auth-footer { grid-column: 1; grid-row: 3; display: flex; }
}
@media (max-width: 760px) {
  .auth-layout {
    min-height: 100dvh;
    grid-template-rows: 56px minmax(0, 1fr) 32px;
    grid-template-columns: 1fr;
    align-content: center;
    padding: 76px 14px 50px;
    overflow: auto;
    background:
      radial-gradient(ellipse at 50% 35%, #102b4d 0, #091b34 46%, #061326 82%),
      #061326;
  }
  .auth-topbar {
    position: absolute;
    inset: 14px 18px auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .auth-topbar .brand { width: min(240px, calc(100vw - 145px)); height: 34px; }
  .auth-brand-lockup { width: min(240px, calc(100vw - 145px)); }
  .auth-language { display: inline-flex; align-items: center; gap: 6px; color: #dbe9fb; font-size: .62rem; white-space: nowrap; }
  .auth-language svg { width: 17px; height: 17px; fill: none; stroke: #9fc9fa; stroke-width: 1.7; }
  .auth-language .auth-chevron { width: 13px; height: 13px; }
  .auth-story { display: none; }
  .auth-main { grid-column: 1; grid-row: 2; width: min(516px, 100%); min-height: 0; aspect-ratio: auto; transform: none; justify-self: center; padding: 23px clamp(18px, 6vw, 42px) 20px; border-radius: 18px; }
  .auth-card-heading { margin-bottom: 15px; }
  .auth-card-logo { width: 80px; height: 68px; }
  .auth-card-heading h1 { font-size: 1.8rem; }
  .auth-options { font-size: .65rem; }
  .auth-footnote { margin-top: 14px; }
  .auth-footer { position: absolute; inset: auto 12px 12px; display: flex; justify-content: center; color: #96afce; font-size: .62rem; text-align: center; }
  .auth-footer-meta { display: none; }
}
@media (max-width: 380px) {
  .auth-layout { padding-right: 10px; padding-left: 10px; }
  .auth-main { padding-right: 16px; padding-left: 16px; }
  .auth-options { font-size: .61rem; }
  .auth-topbar { right: 12px; left: 12px; }
}
