body.login-page {
  display: flow-root;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: #071225;
  background: #edf3f7;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  width: min(1180px, calc(100% - 2rem));
  min-height: min(760px, calc(100dvh - 2rem));
  margin: 1rem auto;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
}

.login-visual {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #fff;
  background: #071522;
}

.login-visual > picture,
.login-visual > picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.login-visual > picture img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 12, 22, 0.42);
}

.login-visual-copy {
  position: absolute;
  z-index: 1;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.25rem, 4vw, 3rem);
  left: clamp(1.25rem, 4vw, 3rem);
  max-width: 520px;
}

.login-visual-copy span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(6, 21, 34, 0.74);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-visual-copy h2 {
  margin: 0.85rem 0 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.login-visual-copy p {
  max-width: 500px;
  margin: 0.9rem 0 0;
  color: #d8e5ef;
  font-size: 1rem;
  line-height: 1.6;
}

.login-panel {
  display: grid;
  align-content: center;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  background: #fff;
}

.login-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: 2rem;
}

.login-brand img {
  display: block;
  width: min(240px, 100%);
  height: auto;
  max-height: 78px;
  object-fit: contain;
}

.login-heading {
  margin-bottom: 1.6rem;
}

.login-heading span {
  color: #0b8a7b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-heading h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.login-heading p {
  margin: 0.65rem 0 0;
  color: #64748b;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-field {
  display: grid;
  gap: 0.42rem;
  color: #34465d;
  font-size: 0.86rem;
  font-weight: 850;
}

.login-input-wrap {
  position: relative;
  display: grid;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 0.95rem;
  z-index: 1;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  color: #718096;
  pointer-events: none;
}

.login-input-icon svg,
.login-password-toggle svg,
.login-submit svg,
.login-security svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-input-wrap input {
  width: 100%;
  min-height: 3.45rem;
  border: 1px solid #d7e1e8;
  border-radius: 8px;
  padding: 0.8rem 3.2rem 0.8rem 3rem;
  color: #071225;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.login-input-wrap input:focus {
  border-color: #0fae96;
  box-shadow: 0 0 0 4px rgba(15, 174, 150, 0.11);
}

.login-password-toggle {
  position: absolute;
  right: 0.45rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #526174;
  background: transparent;
  cursor: pointer;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
  color: #075f57;
  background: #eafbf7;
}

.login-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.login-forgot {
  color: #087f73;
  font-size: 0.86rem;
  font-weight: 900;
}

.login-forgot:hover {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.login-caps {
  display: none;
  color: #9a5b08;
  font-size: 0.78rem;
  font-weight: 800;
}

.login-caps.is-visible {
  display: block;
}

.login-submit {
  display: inline-flex;
  width: 100%;
  min-height: 3.3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: #04111e;
  background: #19c8a7;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.login-submit:hover {
  background: #31d6b7;
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-security {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.25rem;
  color: #718096;
  font-size: 0.78rem;
  line-height: 1.45;
}

.login-security svg {
  flex: 0 0 auto;
  color: #0b8a7b;
}

.login-flash {
  margin: 0 0 1rem;
  border: 1px solid #f2c4c4;
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  color: #a61b1b;
  background: #fff4f4;
  line-height: 1.5;
}

.login-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.09);
  color: #64748b;
  font-size: 0.86rem;
}

.login-links a {
  width: fit-content;
  color: #087f73;
  font-weight: 900;
}

.login-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

@media (max-width: 900px) {
  body.login-page {
    background: #fff;
  }

  .login-shell {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    width: min(100%, 560px);
    min-height: 100dvh;
    margin: 0 auto;
    align-content: center;
    padding:
      max(1.1rem, env(safe-area-inset-top))
      clamp(1rem, 6vw, 2.2rem)
      max(1.1rem, env(safe-area-inset-bottom));
  }

  .login-brand {
    margin-bottom: 1.45rem;
  }

  .login-brand img {
    width: min(215px, 72vw);
    max-height: 68px;
  }

  .login-heading {
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 430px) {
  .login-panel {
    align-content: start;
    padding-top: max(1rem, env(safe-area-inset-top));
  }

  .login-brand {
    width: 100%;
    justify-content: center;
    margin-bottom: 1.1rem;
  }

  .login-heading h1 {
    font-size: 2rem;
  }

  .login-heading p {
    font-size: 0.92rem;
  }

  .login-form {
    gap: 0.85rem;
  }

  .login-input-wrap input,
  .login-submit {
    min-height: 3.35rem;
  }

  .login-form-row {
    align-items: flex-start;
  }
}

@media (max-height: 650px) and (orientation: landscape) {
  .login-shell {
    min-height: 100dvh;
    margin-top: 0;
    margin-bottom: 0;
  }

  .login-panel {
    align-content: start;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .login-brand {
    margin-bottom: 0.75rem;
  }

  .login-brand img {
    max-height: 50px;
  }

  .login-heading {
    margin-bottom: 0.85rem;
  }

  .login-heading p,
  .login-security {
    display: none;
  }

  .login-links {
    margin-top: 0.8rem;
    padding-top: 0.7rem;
  }
}

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