.login-layout {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  background: #94c8fa;
  color: var(--navy);
}
.login-artwork { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.login-artwork img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.login-form {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 100dvh;
  padding: max(180px, 18vh) 14vw 48px 24px;
}
.login-panel {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border: 1px solid #ffffffa6;
  border-radius: 26px;
  background: #fffffff2;
  box-shadow: 0 16px 48px #172d491a;
}
@supports (backdrop-filter: blur(18px)) {
  .login-panel { background: #ffffffde; backdrop-filter: blur(18px); }
}
.login-panel .eyebrow { color: var(--navy); font-size: 10px; letter-spacing: 1.4px; }
.login-panel h1 { margin: 8px 0; font-size: 25px; line-height: 1.3; font-weight: 650; letter-spacing: -.6px; }
.login-panel header p { font-size: 13px; line-height: 1.6; color: #345574; }
.login-panel form { margin-top: 22px; gap: 12px; }
.login-input { position: relative; display: flex; align-items: center; min-height: 46px; border: 1px solid #c9d8e6; border-radius: 12px; background: #ffffffe8; }
.login-input > .icon { position: absolute; left: 14px; width: 18px; height: 18px; pointer-events: none; color: var(--navy); }
.login-input input { width: 100%; min-width: 0; min-height: 44px; padding: 11px 44px; border: 0; border-radius: inherit; background: transparent; color: var(--navy); font: inherit; font-size: 14px; line-height: 22px; }
.login-input input::placeholder { color: #50657d; opacity: 1; }
.login-input:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; }
.login-input input:focus { outline: none; }
.login-password-toggle { position: absolute; right: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--navy); cursor: pointer; }
.login-password-toggle:hover { background: var(--primary-soft); }
.login-password-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: -3px; }
.login-password-toggle .icon { width: 19px; height: 19px; }
.login-panel .login-submit { min-height: 46px; width: 100%; border-radius: 12px; background: #124c8c; box-shadow: none; }
.login-panel .login-submit:hover { background: #0c3e76; }
.login-panel #login-error:empty { display: none; }
.login-or { display: flex; align-items: center; gap: 12px; margin-block: 16px; color: #50657d; font-size: 11px; }
.login-or::before,.login-or::after { content: ''; flex: 1; height: 1px; background: #bdcfe0; }
.login-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px; border: 1px solid #c9d8e6; border-radius: 12px; background: #ffffffe8; color: #50657d; font: inherit; font-size: 13px; }
.login-google:disabled { cursor: not-allowed; }
.login-google svg { width: 20px; height: 20px; flex: none; }
.login-google-note { font-size: 10px; line-height: 1.5; margin-top: 6px; color: #345574; }
.login-demo { margin-top: 16px; padding-top: 12px; border-top: 1px solid #bdcfe0; }
.login-demo summary { font-size: 11px; font-weight: 600; cursor: pointer; padding-block: 6px; }
.login-demo summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.login-demo p { margin: 10px 0 12px; font-size: 12px; line-height: 1.6; color: #345574; }
.login-demo .chip { min-height: 36px; }
.login-panel .app-version-footer { margin-top: 18px; padding: 0; background: transparent; color: #345574; }
.login-brand { display: flex; align-items: center; gap: 10px; }
.login-brand img { object-fit: contain; }
.login-brand strong { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; }
.login-brand small { display: block; max-width: 175px; font-size: 9px; line-height: 1.4; }
.login-split { margin: 0; background: #eff5fb; padding: 48px; display: flex; align-items: center; justify-content: center; }
.login-split .login-artwork { inset: 48px 48px 48px 50%; border-radius: 0 24px 24px 0; }
.login-split .login-artwork img { object-position: left; }
.login-split .login-form { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 32px; width: 50%; margin-right: 50%; padding: 32px; background: white; border-radius: 24px 0 0 24px; min-height: calc(100dvh - 96px); }
.login-split .login-panel { border: 0; background: white; box-shadow: none; backdrop-filter: none; padding: 0; margin: auto; }
.login-centered .login-artwork { opacity: .3; }
.login-centered .login-form { flex-direction: column; justify-content: center; align-items: center; gap: 22px; padding: 48px 20px; }
.login-centered .login-panel header { text-align: center; }
@media (max-width: 900px) {
  .login-artwork { bottom: auto; }
  .login-artwork img { display: block; height: auto; }
  .login-form { justify-content: center; padding: 76vw 20px 32px; }
  .login-panel { padding: 26px; }
  .login-input input { font-size: 16px; }
  .login-split { padding: 20px; background: #f4f8fc; }
  .login-split .login-artwork { display: none; }
  .login-split .login-form { width: 100%; max-width: 420px; margin: 0; border-radius: 24px; padding: 28px; min-height: calc(100dvh - 40px); }
  .login-split .login-panel { padding: 0; }
  .login-centered .login-form { padding: 48px 20px; }
  .login-floating .login-artwork { bottom: 0; }
  .login-floating .login-form {
    align-items: stretch;
    padding: 76vw 0 0;
  }
  .login-floating .login-panel {
    max-width: none;
    min-height: calc(100dvh - 76vw);
    border-radius: 26px 26px 0 0;
    border-inline: 0;
    border-bottom: 0;
    padding-bottom: max(26px, env(safe-area-inset-bottom));
    box-shadow: none;
  }
}
@media (max-width: 359px) {
  .login-form { padding-inline: 16px; }
  .login-panel { padding: 22px; }
  .login-panel h1 { font-size: 22px; }
  .login-split { padding: 12px; }
  .login-split .login-form { padding: 22px; }
}
