:root {
  color-scheme: dark;
  --aqua: #43d5cb;
  --white: #f7f7f7;
  --muted: #d0d0d2;
  font-family: Arial, Helvetica, sans-serif;
  background: #000;
  color: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; overflow-x: hidden; background: #000 url("assets/ega-construction-hero.webp") left center / cover no-repeat; }
a { color: inherit; }

.page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(410px, 0.9fr) minmax(500px, 1.1fr);
  align-items: center;
  width: min(100%, 1672px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 58px clamp(50px, 15vw, 250px) 34px clamp(50px, 15vw, 250px);
}

.copy { position: relative; z-index: 1; width: min(100%, 540px); padding-top: 0; }
.logo { display: block; width: clamp(230px, 27vw, 380px); height: auto; margin: 0 0 20px -9px; }
h1 { margin: 0 0 22px; font-size: clamp(39px, 4.2vw, 66px); line-height: .99; letter-spacing: -2.3px; font-weight: 750; }
h1 span { color: var(--aqua); }
.message { margin: 0 0 30px; color: var(--muted); font-size: clamp(20px, 1.8vw, 28px); line-height: 1.28; letter-spacing: .05px; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 32px; width: 274px; min-height: 61px; padding: 0 31px 0 39px; border: 1.5px solid #f2f2f2; border-radius: 999px; text-decoration: none; font-size: 14px; letter-spacing: 2.1px; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.contact span { font-size: 22px; line-height: 1; letter-spacing: 0; }
.contact:hover, .contact:focus-visible { color: #050606; border-color: var(--aqua); background: var(--aqua); }
.contact-details { display: flex; align-items: center; gap: 28px; margin-top: 39px; white-space: nowrap; }
.contact-details a { display: inline-flex; align-items: center; gap: 14px; color: #f5f5f5; text-decoration: none; font-size: 17px; }
.contact-details a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.contact-details svg { flex: 0 0 auto; width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.contact-details svg .solid { fill: currentColor; stroke: none; }
.divider { height: 39px; width: 1px; background: #eee; }
.portal { position: fixed; z-index: 5; top: clamp(24px, 4.4vw, 44px); right: clamp(24px, 4.4vw, 66px); display: grid; width: 62px; height: 62px; place-items: center; border: 1.5px solid var(--aqua); border-radius: 50%; color: #fff; transition: background-color .18s ease; }
.portal:hover, .portal:focus-visible { background: #123b39; }
.portal svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 4px; }

@media (max-width: 900px) {
  .page { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); padding-left: 6vw; padding-right: 4vw; }
  .logo { width: clamp(220px, 30vw, 300px); }
  h1 { font-size: clamp(34px, 4.2vw, 43px); letter-spacing: -1.6px; }
  .message { font-size: 21px; }
  .contact-details { flex-wrap: wrap; gap: 12px; white-space: normal; }
  .contact-details a { gap: 9px; font-size: 14px; }
  .contact-details svg { width: 25px; height: 25px; }
}

@media (max-width: 700px) {
  body { min-height: 100svh; background-size: auto 45svh; background-position: right 7% bottom 24%; }
  .page { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(165px, 1fr) auto auto; align-content: stretch; min-height: 100svh; padding: 30px 26px 25px; }
  .copy { display: contents; }
  .logo { grid-row: 1; width: 205px; margin: 12px 0 13px -5px; }
  h1 { grid-row: 2; margin-bottom: 12px; font-size: clamp(40px, 11vw, 52px); line-height: 1; letter-spacing: -1.7px; }
  .message { grid-row: 3; margin-bottom: 8px; font-size: 19px; line-height: 1.28; }
  .desktop-break { display: none; }
  .contact { grid-row: 5; width: 244px; min-height: 54px; padding-inline: 27px; font-size: 13px; }
  .contact-details { grid-row: 6; position: relative; z-index: 2; flex-wrap: wrap; gap: 14px 20px; margin-top: 14px; padding-top: 5px; }
  .contact-details a { gap: 9px; font-size: 14px; }
  .contact-details svg { width: 23px; height: 23px; }
  .divider { height: 25px; }
  .portal { top: 19px; right: 18px; width: 47px; height: 47px; }
  .portal svg { width: 22px; height: 22px; }
}

@media (max-width: 380px) {
  .page { padding-inline: 20px; }
  .logo { width: 175px; }
  h1 { font-size: 39px; }
  .message { font-size: 18px; }
  .contact-details { gap: 11px; }
  .contact-details a { font-size: 13px; }
}

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


/* Portal S0.1: accessible login drawer. The landing remains unchanged beneath it. */
[hidden] { display: none !important; }
.portal { cursor: pointer; padding: 0; background: transparent; font: inherit; }
body.portal-open { overflow: hidden; }
.login-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  opacity: 0;
  transition: opacity .24s ease;
}
.login-overlay.is-visible { opacity: 1; }
.login-panel {
  position: fixed;
  z-index: 21;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(100vw, 470px);
  min-height: 100vh;
  min-height: 100svh;
  overflow-y: auto;
  padding: 24px 62px 34px;
  border-left: 1px solid rgba(255,255,255,.055);
  color: #f6f7f7;
  background: radial-gradient(ellipse at 72% 0%, #222629 0, #191c1f 44%, #151719 100%);
  box-shadow: -24px 0 70px rgba(0,0,0,.24);
  transform: translateX(102%);
  transition: transform .28s cubic-bezier(.2,.75,.25,1);
}
.login-panel.is-visible { transform: translateX(0); }
.login-close {
  position: absolute;
  top: 22px;
  right: 23px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #c7cbce;
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.login-close:hover, .login-close:focus-visible { color: #fff; border-color: #41474a; background: rgba(255,255,255,.05); }
.login-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.login-logo { display: block; width: 145px; height: auto; margin: 0 0 4px -3px; }
.login-panel h2 { margin: 1px 0 4px; color: #f7f8f8; font-size: 36px; line-height: 1.08; letter-spacing: -.9px; font-weight: 700; }
.login-welcome { margin: 0; color: #aeb3b7; font-size: 16px; line-height: 1.45; }
.login-form { display: flex; flex-direction: column; margin-top: 35px; }
.login-form label { margin-bottom: 10px; color: #aeb3b7; font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .6px; }
.login-input-wrap {
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid #383d41;
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.015);
  transition: border-color .18s ease, background-color .18s ease;
}
.login-input-wrap:focus-within { border-color: #43d5cb; background: rgba(255,255,255,.055); }
.field-icon { flex: 0 0 auto; width: 21px; height: 21px; margin-left: 17px; fill: none; stroke: #e1e5e7; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.login-input-wrap input { width: 100%; min-width: 0; height: 50px; padding: 0 13px; border: 0; outline: 0; color: #f4f5f5; background: transparent; font: inherit; font-size: 15px; }
.login-input-wrap input::placeholder { color: #d2d5d7; opacity: .94; }
.password-label { margin-top: 24px; }
.password-toggle { display: grid; flex: 0 0 auto; width: 44px; height: 44px; margin-right: 6px; place-items: center; border: 0; border-radius: 6px; color: #e9edef; background: transparent; cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { color: #43d5cb; background: rgba(255,255,255,.06); }
.eye-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.forgot-password { align-self: flex-end; margin: 14px 0 27px; color: #43d5cb; text-decoration: none; font-size: 14px; font-weight: 600; }
.forgot-password:hover, .forgot-password:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 57px; border: 0; border-radius: 999px; color: #071312; background: #43d5cb; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .35px; cursor: pointer; transition: background-color .18s ease, transform .18s ease; }
.login-submit:hover { background: #62e1d8; transform: translateY(-1px); }
.login-submit:active { transform: translateY(0); }
.login-submit span { font-size: 22px; line-height: .8; }
.form-status { margin: 13px 2px 0; color: #aeb3b7; font-size: 13px; line-height: 1.4; }
.login-divider { width: 100%; height: 1px; margin: 32px 0 25px; background: #383d41; }
.login-description { margin: 0; color: #aeb3b7; font-size: 15px; line-height: 1.4; }
.login-panel :focus-visible, .login-close:focus-visible, .password-toggle:focus-visible, .login-submit:focus-visible { outline: 2px solid #43d5cb; outline-offset: 3px; }
.login-input-wrap input:focus-visible { outline: none; outline-offset: 0; }

@media (max-width: 520px) {
  .login-panel { width: 100%; padding: 22px 28px 30px; }
  .login-close { top: 17px; right: 16px; }
  .login-form { margin-top: 29px; }
}
@media (max-height: 700px) and (min-width: 521px) {
  .login-panel { padding-top: 15px; padding-bottom: 20px; }
  .login-logo { width: 125px; margin-bottom: 0; }
  .login-panel h2 { font-size: 32px; }
  .login-form { margin-top: 22px; }
  .password-label { margin-top: 16px; }
  .forgot-password { margin-bottom: 19px; }
  .login-divider { margin: 24px 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-overlay, .login-panel { transition-duration: .01ms; }
}
