:root {
  font: 16px/1.55 var(--egis-font);
  color: var(--egis-navy);
  background: var(--egis-white);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
a { color: var(--egis-blue); text-underline-offset: .2em; }
:is(a, button, input):focus-visible { outline: 3px solid var(--egis-focus); outline-offset: 3px; }

.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}

.access-cover {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: var(--egis-navy);
  color: var(--egis-white);
}

.access-cover::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: #14546a url("/assets/egis-bridge.jpg") 34% 40% / cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 57%, 0 79%);
}

.access-cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(145deg, var(--egis-mist), var(--egis-blue) 64%);
  clip-path: polygon(0 57%, 24% 100%, 0 100%);
  opacity: .78;
}

.cover-content {
  margin: 0 0 clamp(27px, 5vh, 64px) clamp(36px, 6vw, 110px);
  padding: 10px 28px 10px 0;
}

.cover-rule { display: block; width: 42px; height: 5px; margin-bottom: 13px; background: var(--egis-lime); }
.cover-title { margin: 0; font-size: clamp(44px, 5.7vw, 100px); font-weight: 700; line-height: .95; letter-spacing: -.045em; }
.cover-subtitle { margin: 11px 0 0; color: #e1eff0; font-size: clamp(18px, 2.15vw, 32px); line-height: 1.15; }

.access-workspace {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 86px);
  min-width: 0;
  background: var(--egis-white);
}

.access-workspace::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  z-index: -1;
  width: clamp(105px, 17vw, 290px);
  height: clamp(78px, 13vw, 192px);
  background: linear-gradient(143deg, var(--egis-paper) 63%, var(--egis-mist) 63% 75%, var(--egis-blue) 75% 87%, var(--egis-navy) 87%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.access-header, .access-card { width: min(100%, 455px); margin-inline: auto; }
.access-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: clamp(30px, 7vh, 66px); }
.brand { display: inline-flex; align-items: center; padding: 3px 1px; }
.brand img { display: block; width: 160px; max-width: 100%; height: auto; }
.back { font-size: .875rem; font-weight: 600; }

.access-nav {
  display: flex;
  gap: 28px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--egis-line);
}

.access-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: -1px;
  padding: 4px 2px;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  color: var(--egis-muted);
  font-weight: 650;
}

.access-nav a:hover { color: var(--egis-blue); }
.access-nav a[aria-current] { border-bottom-color: var(--egis-lime); color: var(--egis-navy); }
.eyebrow { margin: 0 0 7px; color: var(--egis-blue); font-size: .72rem; letter-spacing: .135em; font-weight: 700; }
h1 { margin: 0 0 11px; font-size: clamp(2rem, 4.1vw, 3.5rem); line-height: 1.02; font-weight: 700; letter-spacing: -.041em; }
#access-description { margin: 0 0 24px; color: var(--egis-muted); }
.hint { margin: 8px 0 0; color: var(--egis-muted); font-size: .87rem; }

label { display: block; margin-bottom: 6px; font-size: .91rem; font-weight: 650; }
input + label, .hint + label { margin-top: 15px; }
input {
  width: 100%;
  min-height: 47px;
  padding: 9px 12px;
  border: 1px solid #9bb1b7;
  border-radius: 3px;
  background: var(--egis-white);
  font: inherit;
  color: var(--egis-navy);
}

.button, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button { background: var(--egis-navy); color: var(--egis-white); }
.button:hover { background: var(--egis-blue); }
.button:disabled, .secondary:disabled { opacity: .65; cursor: wait; }
form > .button { width: 100%; margin-top: 23px; }
#sign-in > .hint { margin-top: 13px; }
.secondary { border-color: #a7bdc1; color: var(--egis-blue); background: var(--egis-white); }
.secondary:hover { background: var(--egis-wash); }
.manage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.account-details { margin: 18px 0 0; padding: 16px; border: 1px solid var(--egis-line); background: var(--egis-paper); }
.account-details .secondary { margin-top: 12px; }
.notice, .status { margin: 13px 0 0; font-size: .93rem; }
.notice { color: #9e2538; }
.status { color: var(--egis-blue); }
footer { margin-top: 27px; padding-top: 13px; border-top: 1px solid var(--egis-line); color: var(--egis-muted); font-size: .82rem; }

@media (max-width: 780px) {
  .access-layout { grid-template-columns: minmax(0, 1fr); }
  .access-cover { position: relative; height: clamp(166px, 36vw, 260px); min-height: 0; }
  .access-cover::before { background-position: center 40%; clip-path: polygon(0 0, 100% 0, 100% 48%, 0 65%); }
  .access-cover::after { clip-path: polygon(0 54%, 33% 100%, 0 100%); opacity: .65; }
  .cover-content { margin: 0 0 15px 25px; padding: 0; }
  .cover-rule { width: 27px; height: 3px; margin-bottom: 7px; }
  .cover-title { font-size: clamp(27px, 6vw, 48px); }
  .cover-subtitle { margin-top: 5px; font-size: clamp(14px, 3vw, 19px); }
  .access-workspace { padding: 22px clamp(22px, 6vw, 42px) 62px; }
  .access-header { margin-bottom: 20px; }
  .brand img { width: 140px; }
  .access-nav { margin-bottom: 21px; }
}

@media (min-width: 781px) and (max-height: 740px) {
  .access-workspace { padding-block: 24px; }
  .access-header { margin-bottom: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
