.login-gate {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  color: #f5f7ef;
  background: #15261e;
}

.login-visual {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 29rem;
  isolation: isolate;
  background: #254234;
}

.login-visual img,
.login-visual::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.login-visual img { object-fit: cover; object-position: 52% center; }
.login-visual::after {
  content: "";
  background:
    linear-gradient(90deg, transparent 65%, #15261e 100%),
    linear-gradient(0deg, #15261e8c 0%, transparent 42%);
  pointer-events: none;
}

.login-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.5rem;
  width: min(100%, 32rem);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.25rem);
  text-align: center;
}

.login-mark { display: block; width: min(57%, 12.8rem); height: auto; }
.login-copy h1 {
  margin: 0;
  font: 700 clamp(3rem, 5.15vw, 5.1rem)/.99 var(--display-font);
  letter-spacing: -.034em;
  text-wrap: balance;
}
.login-copy p {
  max-width: 37ch;
  margin: .85rem auto 0;
  color: #d0dbd1;
  font-size: .98rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.login-copy p.login-notice { color: #f7daac; }
.login-action { display: grid; justify-items: center; gap: .65rem; width: min(100%, 23rem); }
.login-google {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-block-size: 3.35rem;
  gap: .65rem;
  padding: .7rem .9rem;
  border: 1px solid #747775;
  border-radius: .45rem;
  background: #fff;
  color: #1f1f1f;
  font: 600 .92rem/1.2 Roboto, Arial, sans-serif;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.login-google:visited { color: #1f1f1f; }
.login-google img { display: block; flex: none; }
.login-google:hover { background: #eff4fc; }
.login-google:active { transform: scale(.985); }
.login-returning {
  padding: .26rem .65rem;
  border: 1px solid #77917c;
  border-radius: 99rem;
  color: #dbe8d6;
  font-size: .76rem;
  font-weight: 750;
}
.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 .5rem;
  border: 0;
  background: transparent;
  color: #d6e6d7;
  font: 700 .875rem/1.25 Manrope, sans-serif;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.login-link:visited { color: #d6e6d7; }
.login-google:focus-visible, .login-link:focus-visible { outline: 2px solid #d1f45f; outline-offset: 4px; }

@media (max-width: 760px) {
  .login-gate { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-visual { min-height: clamp(12.75rem, 60vw, 24rem); }
  .login-visual img { object-position: center 41%; }
  .login-visual::after { background: linear-gradient(0deg, #15261e 0%, #15261e7a 22%, transparent 62%); }
  .login-panel {
    gap: clamp(.9rem, 4vw, 1.35rem);
    align-content: start;
    padding-block: .25rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
  }
  .login-copy h1 { font-size: clamp(2.6rem, 12vw, 4.25rem); }
  .login-copy p { margin-block-start: .65rem; font-size: .95rem; }
}

@media (max-width: 380px) and (max-height: 680px) {
  .login-visual { min-height: 11rem; }
  .login-panel { gap: .85rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .login-visual { animation: login-scene-in .55s ease-out both; }
  .login-panel > * { animation: login-content-in .42s ease-out both; }
  .login-panel .login-action { animation-delay: 70ms; }
}

@keyframes login-scene-in { from { opacity: .55; } }
@keyframes login-content-in { from { opacity: .65; transform: translateY(.45rem); } }

@media (prefers-reduced-motion: reduce) {
  .login-google { transition: none; }
}
