body.login-page {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 18% 15%, rgba(73, 135, 194, .18), transparent 36rem),
    radial-gradient(ellipse at 89% 91%, rgba(29, 116, 116, .08), transparent 30rem),
    #f1f5fa;
}
body.login-page::before {
  position: fixed;
  inset: 0 0 auto;
  height: 9px;
  content: "";
  background: linear-gradient(90deg, #1b416c, #3978bd 48%, #52aaa1);
}
.login-card {
  position: relative;
  overflow: hidden;
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid rgba(222, 231, 241, .95);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(21, 48, 78, .11);
  animation: login-enter .45s cubic-bezier(.2,.7,.2,1) both;
}
.login-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #3978bd, #48a49e);
}
@keyframes login-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.login-card .brand { padding-bottom: 21px; border-bottom-color: #edf1f6; }
.login-card .brand img { width: 58px; height: 58px; border: 1px solid #e7edf4; box-shadow: 0 5px 14px rgba(24,53,87,.08); }
.login-card .brand strong { color: #173557; font-size: 15px; }
.login-card .brand span { color: #73869c; font-size: 11px; }
.login-card h1 { margin-top: 26px; color: #142f4f; font-size: 25px; letter-spacing: -.02em; }
.login-card .sub { color: #77889c; font-size: 12px; }
.login-card label { color: #50657e; font-size: 11px; font-weight: 700; }
.login-card input { min-height: 46px; border-color: #dce5ef; border-radius: 10px; }
.login-card input:focus { border-color: #79a8d1; box-shadow: 0 0 0 4px rgba(57,120,189,.1); }
.login-card button {
  min-height: 46px;
  border-radius: 10px;
  background: linear-gradient(130deg, #3978bd, #24558d);
  box-shadow: 0 7px 17px rgba(42,95,157,.2);
  transition: transform .16s ease, box-shadow .16s ease;
}
.login-card button:hover { transform: translateY(-1px); box-shadow: 0 11px 22px rgba(42,95,157,.24); }
.login-card .privacy { color: #60758d; border-color: #e4ecf4; background: #f7faff; font-size: 10px; }
@media (max-width: 480px) {
  .login-card { padding: 24px; border-radius: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-card { animation: none; }
  .login-card button { transition: none; }
}

/* Signed-in product entry */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 30px;
}
.login-shell {
  width: min(1120px, 100%);
  min-height: min(720px, calc(100dvh - 60px));
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(370px, .84fr);
  align-items: stretch;
  gap: 18px;
}
.login-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  color: #f4f8fc;
  background:
    radial-gradient(ellipse at 82% 14%, rgba(111,182,225,.24), transparent 30rem),
    linear-gradient(145deg, #183c61 0%, #163653 55%, #123846 100%);
  box-shadow: 0 26px 72px rgba(20,47,78,.2);
}
.login-story::before, .login-story::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(222,242,255,.12);
  border-radius: 50%;
  pointer-events: none;
}
.login-story::before { width: 470px; height: 470px; inset-inline-start: -210px; bottom: -245px; }
.login-story::after { width: 330px; height: 330px; inset-inline-start: -140px; bottom: -175px; }
.login-story-glow {
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  inset-inline-start: 4%;
  top: 8%;
  border-radius: 50%;
  background: rgba(82,170,161,.12);
  filter: blur(40px);
}
.story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  padding: 8px 12px;
  border: 1px solid rgba(226,240,252,.18);
  border-radius: 999px;
  color: #d7e7f5;
  background: rgba(255,255,255,.07);
  font-size: 11px;
  font-weight: 650;
}
.story-dot { width: 8px; height: 8px; border-radius: 50%; background: #7cd3b6; box-shadow: 0 0 0 4px rgba(124,211,182,.13); }
.story-content { max-width: 570px; padding-block: 45px; }
.story-overline { margin-bottom: 16px; color: #9ec3df; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.login-story h2 { margin: 0; color: #fff; font-size: clamp(31px, 4vw, 48px); font-weight: 780; letter-spacing: -.035em; line-height: 1.35; }
.login-story h2 span { color: #a9d9df; }
.login-story p { max-width: 480px; margin: 17px 0 0; color: #c4d5e4; font-size: 14px; line-height: 2; }
.story-features { display: grid; gap: 14px; margin-top: 31px; }
.story-features > div { display: flex; align-items: flex-start; gap: 12px; }
.story-check {
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-top: 2px;
  border: 1px solid rgba(157,218,207,.28);
  border-radius: 8px;
  color: #a6e3ce;
  background: rgba(101,187,167,.1);
  font-size: 13px;
}
.story-features strong { display: block; color: #f2f7fb; font-size: 12px; font-weight: 700; }
.story-features small { display: block; margin-top: 3px; color: #afc3d5; font-size: 11px; line-height: 1.7; }
.story-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 17px; border-top: 1px solid rgba(222,240,253,.14); color: #b7cada; font-size: 10px; }
.story-footer-mark { color: #e2edf6; font-weight: 650; }
.login-card {
  align-self: center;
  width: 100%;
  max-width: 460px;
  justify-self: center;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: 23px;
}
.login-card .brand { padding-bottom: 20px; }
.login-heading { margin: 27px 0 18px; }
.login-card .login-eyebrow { color: #5380a8; font-size: 11px; font-weight: 750; }
.login-card h1 { margin: 5px 0 4px; font-size: 27px; }
.login-card .sub { margin: 0; line-height: 1.8; }
.login-card label { margin-top: 16px; }
.login-card input { font-size: 14px; }
.login-card .error { min-height: 22px; }
.login-card button { font-size: 13px; }
.login-card .privacy { margin-top: 19px; padding: 12px; line-height: 1.9; }
.login-footer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 17px; color: #8495a8; font-size: 10px; }
.login-secure-icon { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #297357; background: #e7f5ed; font-size: 10px; font-weight: 800; }
@media (max-width: 900px) {
  .login-page { padding: 22px; }
  .login-shell { width: min(560px,100%); min-height: 0; grid-template-columns: 1fr; gap: 14px; }
  .login-story { min-height: 0; padding: 25px 28px; border-radius: 20px; }
  .story-content { padding-block: 25px 20px; }
  .login-story h2 { font-size: 31px; }
  .story-features { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 21px; }
  .story-features > div { gap: 8px; }
  .story-features small { font-size: 10px; }
  .story-footer { padding-top: 12px; }
  .login-card { order: -1; max-width: 100%; }
}
@media (max-width: 540px) {
  .login-page { display: block; padding: 14px; }
  .login-shell { width: 100%; gap: 12px; }
  .login-card { padding: 23px; border-radius: 17px; }
  .login-card .brand img { width: 50px; height: 50px; }
  .login-heading { margin-top: 22px; }
  .login-card h1 { font-size: 24px; }
  .login-story { padding: 22px; border-radius: 17px; }
  .login-story h2 { font-size: 27px; }
  .login-story p { font-size: 12px; }
  .story-features { grid-template-columns: 1fr; gap: 11px; margin-top: 17px; }
  .story-features small { font-size: 10px; }
}
