/* Premium HMS login — spacious, prominent, single-screen */
:root {
  --ink: #071820;
  --ink-soft: #3d5560;
  --mist: #e4ecef;
  --paper: #f7fafb;
  --line: #cfd9de;
  --teal: #0c555e;
  --teal-deep: #083d44;
  --teal-bright: #11727d;
  --teal-soft: #e8f4f5;
  --focus: rgba(17, 114, 125, .2);
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --font-ui: "Instrument Sans", "Segoe UI", sans-serif;

  /* Fluid scale — grows on big screens */
  --login-pad-x: clamp(28px, 2.8vw, 72px);
  --login-pad-y: clamp(24px, 3.2vh, 56px);
  --login-form-max: clamp(300px, 22vw, 420px);
  --login-form-pad-x: clamp(24px, 2.2vw, 48px);
  --login-logo: clamp(64px, 5.2vw, 96px);
  --login-brand: clamp(1.35rem, 1.35vw + .6rem, 2.15rem);
  --login-product: clamp(2.6rem, 2.8vw + 1rem, 4.4rem);
  --login-tagline: clamp(.92rem, .35vw + .75rem, 1.2rem);
  --login-heading: clamp(1.85rem, 1.2vw + .9rem, 2.75rem);
  --login-lead: clamp(.86rem, .25vw + .7rem, 1.05rem);
  --login-feat-title: clamp(.82rem, .2vw + .7rem, 1.02rem);
  --login-feat-sub: clamp(.68rem, .15vw + .58rem, .82rem);
  --login-feat-gap: clamp(8px, .7vw, 16px);
  --login-feat-pad: clamp(8px, .55vw, 14px);
  --login-feat-ico: clamp(32px, 2.2vw, 44px);
  --login-input-h: clamp(50px, 4.8vh, 60px);
  --login-btn-h: clamp(48px, 4.6vh, 58px);
  --login-content-max: clamp(36rem, 42vw, 52rem);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body.login-body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: #0a2a30;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.login-shell {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr);
  overflow: hidden;
  align-items: stretch;
}

/* —— Left visual —— */
.login-visual {
  position: relative;
  overflow: hidden;
  color: #f4f8f9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--login-pad-y) var(--login-pad-x) clamp(20px, 2.4vh, 36px);
  height: 100%;
}

.login-visual-media {
  position: absolute;
  inset: 0;
  background: url("../img/login-bg.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: loginKen 24s ease-in-out infinite alternate;
}

.login-visual-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(4, 28, 34, .78) 0%, rgba(6, 52, 58, .62) 45%, rgba(5, 30, 36, .48) 100%),
    linear-gradient(180deg, rgba(4, 28, 34, .25) 0%, rgba(4, 28, 34, .72) 100%);
}

.login-visual-grain {
  position: absolute;
  inset: 0;
  opacity: .05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

.login-visual-content {
  position: relative;
  z-index: 1;
  max-width: var(--login-content-max);
  width: 100%;
  animation: loginRise .7s cubic-bezier(.22, 1, .36, 1) both;
}

.login-logo {
  width: var(--login-logo);
  height: var(--login-logo);
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  padding: 6px;
  margin-bottom: clamp(12px, 1.6vh, 22px);
  border: 1px solid rgba(255, 255, 255, .25);
}

.login-brand {
  margin: 0 0 clamp(8px, 1vh, 12px);
  font-size: var(--login-brand);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 18ch;
}

.login-product {
  margin: 0 0 clamp(10px, 1.2vh, 14px);
  font-size: var(--login-product);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.035em;
  color: #edf8f9;
}

.login-tagline {
  margin: 0 0 clamp(18px, 2.4vh, 32px);
  max-width: min(32rem, 100%);
  font-size: var(--login-tagline);
  line-height: 1.5;
  font-weight: 450;
  color: rgba(236, 245, 247, .88);
}

.login-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--login-feat-gap) clamp(12px, 1.2vw, 22px);
  max-width: var(--login-content-max);
}

.login-features li {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, .8vw, 14px);
  min-width: 0;
  padding: var(--login-feat-pad) clamp(10px, .8vw, 14px);
  border-radius: clamp(10px, .7vw, 14px);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
}

.login-feat-ico {
  flex: 0 0 auto;
  width: var(--login-feat-ico);
  height: var(--login-feat-ico);
  border-radius: clamp(8px, .55vw, 12px);
  display: grid;
  place-items: center;
  color: #e4f6f7;
  background: rgba(17, 114, 125, .45);
  border: 1px solid rgba(255, 255, 255, .16);
}

.login-feat-ico svg {
  width: clamp(14px, 1.1vw, 18px);
  height: clamp(14px, 1.1vw, 18px);
}

.login-features strong {
  display: block;
  font-size: var(--login-feat-title);
  font-weight: 650;
  color: #fff;
  line-height: 1.25;
}

.login-features small {
  display: block;
  margin-top: 2px;
  font-size: var(--login-feat-sub);
  font-weight: 450;
  line-height: 1.3;
  color: rgba(236, 245, 247, .72);
}

.login-visual-foot {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(236, 245, 247, .5);
}

/* —— Form panel —— */
.login-panel {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
}

.login-panel-deco {
  display: none;
}

.login-panel-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--login-pad-y) var(--login-form-pad-x);
  animation: loginRise .65s .05s cubic-bezier(.22, 1, .36, 1) both;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: var(--login-form-max);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.login-card::before {
  display: none;
}

.login-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.login-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f6f7;
  color: #0c555e;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.login-card-step {
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7a909a;
}

.login-kicker {
  margin: 0 0 6px;
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

.login-heading {
  margin: 0 0 8px;
  font-size: var(--login-heading);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ink);
}

.login-lead {
  margin: 0 0 clamp(16px, 2vh, 24px);
  font-size: var(--login-lead);
  line-height: 1.5;
  font-weight: 450;
  color: var(--ink-soft);
}

.login-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #d5e0e5;
  font-size: .72rem;
  font-weight: 600;
  color: #7a909a;
}

.login-card-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.login-float {
  position: relative;
  margin-bottom: 16px;
}

.login-float .login-input {
  display: block;
  width: 100%;
  height: var(--login-input-h);
  padding: 18px 15px 6px 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: clamp(.95rem, .2vw + .85rem, 1.05rem);
  font-weight: 500;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.login-field-ico {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: #7a909a;
  pointer-events: none;
  z-index: 2;
  transition: color .18s ease;
}

.login-float.is-focused .login-field-ico,
.login-float.is-filled .login-field-ico {
  color: var(--teal);
}

.login-float .login-input::placeholder { color: transparent; }

.login-float label {
  position: absolute;
  left: 46px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-size: .98rem;
  font-weight: 500;
  color: #7a909a;
  pointer-events: none;
  transition: top .18s ease, transform .18s ease, font-size .18s ease, color .18s ease;
  max-width: calc(100% - 110px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-float.is-active label,
.login-float.is-filled label,
.login-float.is-focused label,
.login-float .login-input:focus + label,
.login-float .login-input:not(:placeholder-shown) + label {
  top: 9px;
  left: 46px;
  transform: none;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal);
}

.login-float .login-input:hover { border-color: #aebfc7; }

.login-float.is-focused .login-input,
.login-float .login-input:focus {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 4px var(--focus);
}

.login-float-pass .login-input { padding-right: 48px; }

.login-float-pass .login-pass-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--teal);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  z-index: 2;
}

.login-float-pass .login-pass-toggle:hover {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.login-msg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 22px;
  flex-wrap: wrap;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
}

.login-forgot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.login-forgot:hover {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: var(--login-btn-h);
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #148a94 0%, #0c555e 100%);
  color: #fff !important;
  font-family: var(--font-ui);
  font-size: clamp(.95rem, .2vw + .85rem, 1.05rem);
  font-weight: 650;
  letter-spacing: .03em;
  text-decoration: none !important;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease, opacity .18s ease;
  box-shadow: 0 10px 22px rgba(12, 85, 94, .28);
  position: relative;
  pointer-events: auto;
}

.login-submit:hover {
  filter: brightness(1.05);
  color: #fff !important;
  transform: translateY(-1px);
}

.login-submit-idle,
.login-submit-busy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-submit-busy[hidden],
.login-submit-idle[hidden] {
  display: none !important;
}

.login-submit.is-loading {
  opacity: .82;
  cursor: wait;
  pointer-events: none;
  filter: none;
  transform: none;
  box-shadow: 0 8px 18px rgba(12, 85, 94, .22);
}

.login-submit.is-loading:hover {
  filter: none;
  transform: none;
}

.login-submit-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: loginBtnSpin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes loginBtnSpin {
  to { transform: rotate(360deg); }
}

.login-credit {
  margin: 28px 0 0;
  text-align: center;
  font-size: .76rem;
  font-weight: 500;
  color: #7d929b;
}

.login-credit a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.login-vendor {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #dbe4e8;
}

.login-vendor-left {
  position: relative;
  z-index: 5;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  max-width: 42rem;
  pointer-events: auto;
}

.login-vendor-left .login-vendor-top strong {
  color: #fff;
}

.login-vendor-left .login-vendor-top span {
  color: rgba(236, 245, 247, .72);
}

.login-vendor-left .login-vendor-logo {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(255, 255, 255, .28);
}

.login-vendor-left .login-vendor-meta {
  color: rgba(236, 245, 247, .62);
}

.login-vendor-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.login-vendor-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .28);
  flex: 0 0 auto;
  padding: 3px;
}

.login-vendor-top strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.login-vendor-top span {
  display: block;
  margin-top: 2px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.login-vendor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

.login-i-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px 0 4px;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .02em;
  color: #fff !important;
  transition: transform .15s ease, filter .15s ease;
  position: relative;
  z-index: 7;
  pointer-events: auto;
  cursor: pointer;
}

.login-i-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #fff !important;
}

.login-i-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  line-height: 1;
}

.login-i-mark svg {
  display: block;
  color: #fff;
  stroke: #fff;
}

.login-i-btn em {
  font-style: normal;
  padding-right: 2px;
}

.login-i-btn.is-web { background: #0ea5a8; }
.login-i-btn.is-mail { background: #2563eb; }
.login-i-btn.is-call { background: #16a34a; }
.login-i-btn.is-map { background: #c2410c; }

.login-vendor-meta {
  margin: 0;
  font-size: .7rem;
  line-height: 1.45;
  font-weight: 500;
  color: #7a909a;
}

/* Toast */
.login-toast-host {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 5000;
  width: min(400px, calc(100vw - 28px));
  pointer-events: none;
}

.login-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 42px 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(7, 24, 32, .18);
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(24px, -8px, 0) scale(.96);
}

.login-toast.is-in { animation: loginToastIn .42s cubic-bezier(.22, 1, .36, 1) both; }
.login-toast.is-out { animation: loginToastOut .28s ease forwards; }

.login-toast.is-success {
  border-color: #abefc6;
  background: linear-gradient(145deg, #f3fdf7 0%, #fff 48%);
}

.login-toast.is-error {
  border-color: #fecdca;
  background: linear-gradient(145deg, #fff6f5 0%, #fff 48%);
}

.login-toast.is-info {
  border-color: #99d6db;
  background:
    linear-gradient(145deg, #eef9fa 0%, #fff 52%);
}

.login-toast.is-info::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0ea5a8, #0c555e);
}

.login-toast-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  animation: loginToastIcon .45s .08s cubic-bezier(.22, 1, .36, 1) both;
}

.login-toast.is-success .login-toast-icon { background: #dcfae6; color: #079455; }
.login-toast.is-error .login-toast-icon { background: #fee4e2; color: #d92d20; }
.login-toast.is-info .login-toast-icon {
  background: #0c555e;
  color: #fff;
}

.login-toast-body { min-width: 0; flex: 1; padding-top: 1px; }

.login-toast-title {
  display: block;
  font-size: .92rem;
  font-weight: 750;
  letter-spacing: .01em;
  color: var(--ink);
  margin-bottom: 4px;
}

.login-toast.is-info .login-toast-title {
  color: #0c555e;
}

.login-toast-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
}

.login-toast.is-info .login-toast-text {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: .03em;
  color: #071820;
}

.login-toast-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7a909a;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.login-toast-close:hover {
  background: rgba(7, 24, 32, .06);
  color: var(--ink);
}

.login-toast-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  transform-origin: left center;
  animation-name: loginToastProgress;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-duration: 4.2s;
}

.login-toast.is-success .login-toast-progress { background: #12b76a; }
.login-toast.is-error .login-toast-progress { background: #f04438; }
.login-toast.is-info .login-toast-progress { background: #0ea5a8; }

@keyframes loginRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes loginKen {
  from { transform: scale(1.04); }
  to { transform: scale(1.09) translate3d(-1%, -.6%, 0); }
}

@keyframes loginToastIn {
  from { opacity: 0; transform: translate3d(28px, -10px, 0) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes loginToastOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translate3d(18px, -6px, 0) scale(.97); }
}

@keyframes loginToastIcon {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: none; }
}

@keyframes loginToastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Comfortable single-screen on mid/short desktops — reduce without squeezing */
@media (min-width: 1440px) {
  :root {
    --login-form-max: clamp(340px, 20vw, 440px);
    --login-content-max: clamp(40rem, 44vw, 56rem);
  }
  .login-shell {
    grid-template-columns: minmax(0, 1.6fr) minmax(340px, 0.68fr);
  }
}

@media (min-width: 1800px) {
  :root {
    --login-pad-x: clamp(48px, 3.2vw, 88px);
    --login-pad-y: clamp(36px, 3.6vh, 64px);
    --login-form-max: clamp(360px, 18vw, 460px);
    --login-form-pad-x: clamp(32px, 2.4vw, 56px);
    --login-logo: clamp(80px, 4.8vw, 108px);
    --login-brand: clamp(1.7rem, 1.2vw + .7rem, 2.35rem);
    --login-product: clamp(3.4rem, 2.4vw + 1.2rem, 4.8rem);
    --login-tagline: clamp(1.02rem, .3vw + .8rem, 1.28rem);
    --login-heading: clamp(2.2rem, 1vw + 1.1rem, 3rem);
    --login-lead: clamp(.95rem, .2vw + .78rem, 1.12rem);
    --login-feat-title: clamp(.9rem, .15vw + .78rem, 1.08rem);
    --login-feat-sub: clamp(.74rem, .12vw + .62rem, .88rem);
    --login-feat-ico: clamp(38px, 2vw, 48px);
    --login-content-max: clamp(44rem, 40vw, 58rem);
  }
  .login-shell {
    grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.62fr);
  }
  .login-features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 2200px) {
  :root {
    --login-form-max: clamp(400px, 16vw, 500px);
    --login-content-max: clamp(48rem, 36vw, 64rem);
    --login-product: clamp(3.8rem, 2vw + 1.4rem, 5.2rem);
  }
  .login-shell {
    grid-template-columns: minmax(0, 1.7fr) minmax(400px, 0.55fr);
  }
}

/* Comfortable single-screen on mid/short desktops — reduce without squeezing */
@media (max-height: 820px) {
  .login-visual { padding: 28px 32px 20px; }
  .login-logo { width: 64px; height: 64px; margin-bottom: 12px; }
  .login-brand { font-size: 1.4rem; }
  .login-product { font-size: 2.8rem; }
  .login-tagline { margin-bottom: 18px; font-size: .95rem; }
  .login-features { gap: 8px 12px; }
  .login-features li { padding: 8px 10px; }
  .login-features small { display: none; }
  .login-panel-inner { padding: 24px 32px; }
  .login-heading { font-size: 2.05rem; }
  .login-lead { margin-bottom: 18px; }
  .login-vendor { margin-top: 16px; padding-top: 12px; }
  .login-vendor-left .login-vendor-meta { display: none; }
}

@media (max-height: 700px) {
  .login-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .login-features li { padding: 7px 8px; }
  .login-feat-ico { width: 30px; height: 30px; }
  .login-features strong { font-size: .78rem; }
  .login-brand { max-width: none; font-size: 1.2rem; }
  .login-product { font-size: 2.3rem; }
}

@media (max-width: 980px) {
  .login-shell { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr); }
  .login-visual { padding: 28px 24px 20px; }
  .login-product { font-size: 2.7rem; }
  .login-card { max-width: min(320px, 100%); }
}

@media (max-width: 860px) {
  body.login-body { overflow: auto; height: auto; }
  .login-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .login-visual {
    height: auto;
    padding: 28px 20px 22px;
  }
  .login-features {
    grid-template-columns: 1fr 1fr;
  }
  .login-features small { display: none; }
  .login-panel {
    height: auto;
    min-height: 55vh;
    align-items: flex-start;
  }
  .login-panel-inner {
    height: auto;
    padding: 28px 20px 36px;
  }
}

.login-license-banner {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.4;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #334155;
}
.login-license-banner.is-ok {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}
.login-license-banner.is-warn {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
.login-license-banner.is-bad {
  background: var(--danger-bg);
  border-color: #fecaca;
  color: var(--danger);
}
.login-license-banner .login-license-link,
a.login-license-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 750;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .login-visual-media,
  .login-visual-content,
  .login-panel-inner,
  .login-toast.is-in,
  .login-toast.is-out,
  .login-toast-icon,
  .login-toast-progress {
    animation: none !important;
  }
  .login-visual-media { transform: scale(1.04); }
  .login-submit:hover { transform: none; }
  .login-toast.is-in { opacity: 1; transform: none; }
}
