:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gasca-navy: #0b1d59;
  --gasca-muted: #66789b;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body.login-page {
  margin: 0;
  min-height: 100vh;
  color: #14203f;
  background:
    radial-gradient(circle at 76% 18%, rgba(255,255,255,.98) 0 16%, rgba(241,248,254,.90) 43%, rgba(218,235,249,.80) 72%),
    linear-gradient(135deg, #cfe5f6 0%, #edf6fd 55%, #d9eaf7 100%);
  overflow-x: hidden;
}

body.login-page::before {
  content: "";
  position: fixed;
  left: -5vw;
  right: 45vw;
  bottom: -18vh;
  height: 52vh;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(211,232,247,.78));
  filter: blur(16px);
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(1290px, calc(100% - 88px));
  height: min(820px, calc(100vh - 96px));
  min-height: 680px;
  margin: max(48px, 9.4vh) auto 48px;
  display: grid;
  grid-template-columns: 45.66% 54.34%;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(55, 87, 120, .21);
}

.login-brand {
  position: relative;
  min-width: 0;
  height: 100%;
  background: #245d8d url('/login-banner-exact.svg?v=1') center center / 100% 100% no-repeat;
}

.login-brand-overlay,
.login-brand-content {
  display: none !important;
}

.login-access {
  position: relative;
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr 145px;
  background: #fff;
}

.login-language {
  position: absolute;
  top: 47px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #596b91;
  font-size: 17px;
  font-weight: 600;
  z-index: 2;
}

.login-language span {
  font-size: 24px;
  line-height: .6;
}

.login-access-main {
  min-width: 0;
  padding: 118px 60px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-copy {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.login-copy h1 {
  margin: 0;
  color: var(--gasca-navy);
  font-size: clamp(38px, 3vw, 48px);
  line-height: 1.08;
  letter-spacing: -.032em;
  font-weight: 800;
  white-space: nowrap;
}

.login-copy p {
  margin: 15px 0 0;
  color: var(--gasca-muted);
  font-size: clamp(21px, 1.72vw, 28px);
  line-height: 1.2;
  font-weight: 400;
}

.login-google-card {
  width: min(100%, 535px);
  min-width: 0;
  margin-top: 52px;
}

.login-google-button {
  min-height: 82px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.login-google-button > div,
.login-google-button iframe {
  max-width: 100% !important;
}

.login-google-button iframe {
  transform: scaleX(1.30) scaleY(1.58);
  transform-origin: center;
  border-radius: 6px !important;
  box-shadow: 0 5px 15px rgba(45, 77, 112, .14);
}

.login-message {
  min-height: 22px;
  margin: 14px 0 0;
  text-align: center;
  color: #a23d3d;
  font-size: 14px;
}

.login-security {
  min-height: 145px;
  padding: 26px 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #f3f8fd 0%, #eef5fb 100%);
  border-top: 1px solid #edf2f7;
  color: #66789c;
}

.login-security-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
}

.login-security-title svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #66789c;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-security p {
  max-width: 100%;
  margin: 10px 0 0;
  font-size: 14px;
}

.login-security a {
  margin-top: 3px;
  color: #7c8dab;
  font-size: 10px;
  opacity: .66;
  text-underline-offset: 2px;
}

@media (max-width: 1120px) and (min-width: 761px) {
  .login-shell {
    width: calc(100% - 32px);
    grid-template-columns: 45.66% 54.34%;
  }
  .login-language { right: 28px; }
  .login-access-main { padding-left: 34px; padding-right: 34px; }
  .login-copy h1 {
    font-size: clamp(31px, 3.7vw, 40px);
    white-space: normal;
  }
  .login-copy p { font-size: 20px; }
}

@media (max-width: 760px) {
  body.login-page::before { display: none; }

  body.login-page {
    background: #fff;
  }

  .login-shell {
    width: 100%;
    height: auto;
    min-height: 100vh;
    margin: 0;
    grid-template-columns: 1fr;
    border-radius: 0;
    box-shadow: none;
  }

  .login-brand { display: none !important; }

  .login-access {
    min-height: 100vh;
    height: auto;
    grid-template-rows: 1fr 126px;
  }

  .login-language {
    top: 20px;
    right: 22px;
    font-size: 14px;
  }

  .login-access-main {
    min-height: calc(100vh - 126px);
    padding: 78px 22px 42px;
  }

  .login-copy h1 {
    font-size: clamp(29px, 8vw, 36px);
    white-space: normal;
  }

  .login-copy p {
    margin-top: 10px;
    font-size: 18px;
  }

  .login-google-card {
    width: 100%;
    max-width: 390px;
    margin-top: 36px;
  }

  .login-google-button {
    min-height: 64px;
  }

  .login-google-button iframe {
    transform: scaleY(1.38);
    transform-origin: center;
  }

  .login-security {
    min-height: 126px;
    padding: 20px 18px 16px;
  }

  .login-security-title { font-size: 15px; }
  .login-security-title svg { width: 23px; height: 23px; }
  .login-security p { margin-top: 8px; font-size: 12px; }
  .login-security a { font-size: 9px; }
}

@media (max-height: 760px) and (min-width: 761px) {
  .login-shell {
    min-height: 620px;
    height: calc(100vh - 40px);
    margin: 20px auto;
  }
  .login-access { grid-template-rows: 1fr 126px; }
  .login-access-main { padding-top: 90px; padding-bottom: 44px; }
  .login-google-card { margin-top: 36px; }
}

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