body.login-template-page {
  --login-bg: #eef3f5;
  --login-ink: #132027;
  --login-muted: #62717a;
  --login-panel: #ffffff;
  --login-panel-soft: #f7fafb;
  --login-line: #d8e2e6;
  --login-line-strong: #9fc7ca;
  --login-accent: #18777f;
  --login-accent-strong: #0e5f68;
  --login-accent-soft: #e4f4f3;
  --login-side: #102027;
  --login-side-soft: #18313a;
  --login-danger: #b2412f;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(24, 119, 127, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(29, 72, 85, 0.12), transparent 40%),
    var(--login-bg);
  color: var(--login-ink);
}

body.login-template-page .login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 44px);
}

body.login-template-page .login-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  width: min(100%, 920px);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(19, 32, 39, 0.1);
  border-radius: 8px;
  background: var(--login-panel);
  box-shadow: 0 28px 70px rgba(25, 45, 55, 0.18);
}

body.login-template-page .brand-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: clamp(32px, 5vw, 58px);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, var(--login-side-soft), var(--login-side));
}

body.login-template-page .brand-header::before,
body.login-template-page .brand-header::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

body.login-template-page .brand-header::before {
  right: -72px;
  bottom: -72px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(164, 219, 219, 0.22);
  border-radius: 50%;
}

body.login-template-page .brand-header::after {
  left: 34px;
  top: 34px;
  width: 92px;
  height: 92px;
  border-top: 2px solid rgba(164, 219, 219, 0.34);
  border-left: 2px solid rgba(164, 219, 219, 0.34);
}

body.login-template-page .login-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(300px, 72%);
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28));
}

body.login-template-page .login-form {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(30px, 5vw, 58px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 251, 0.96)),
    var(--login-panel);
}

body.login-template-page .login-field {
  display: grid;
  gap: 8px;
}

body.login-template-page .login-field > span:first-child {
  color: var(--login-ink);
  font-size: 0.86rem;
  font-weight: 750;
}

body.login-template-page .login-input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

body.login-template-page .login-field-icon {
  position: absolute;
  left: 15px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--login-accent);
  font-size: 0.95rem;
  font-weight: 800;
  pointer-events: none;
}

body.login-template-page input {
  width: 100%;
  min-height: 52px;
  padding: 0 48px;
  border: 1px solid var(--login-line);
  border-radius: 8px;
  background: #fff;
  color: var(--login-ink);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.login-template-page input::placeholder {
  color: #8c9aa1;
  font-weight: 500;
}

body.login-template-page input:focus {
  outline: none;
  border-color: var(--login-line-strong);
  background: var(--login-panel-soft);
  box-shadow: 0 0 0 4px rgba(24, 119, 127, 0.13);
}

body.login-template-page .login-password-toggle {
  position: absolute;
  right: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--login-muted);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

body.login-template-page .login-password-toggle::before {
  content: "";
  width: 17px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

body.login-template-page .login-password-toggle::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

body.login-template-page .login-password-toggle[aria-pressed="true"]::after {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-34deg);
}

body.login-template-page .login-password-toggle:hover,
body.login-template-page .login-password-toggle:focus-visible {
  color: var(--login-accent-strong);
  border-color: rgba(24, 119, 127, 0.22);
  background: var(--login-accent-soft);
  outline: none;
}

body.login-template-page .login-remember-device {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: -2px;
  color: var(--login-muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

body.login-template-page .login-remember-device.is-hidden {
  display: none;
}

body.login-template-page .login-remember-device input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--login-accent);
  cursor: pointer;
}

body.login-template-page .login-remember-device span {
  min-width: 0;
}

body.login-template-page .login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  border: 0;
  border-radius: 8px;
  background: var(--login-accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(14, 95, 104, 0.18);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.login-template-page .login-btn:hover,
body.login-template-page .login-btn:focus-visible {
  background: var(--login-accent-strong);
  box-shadow: 0 16px 34px rgba(14, 95, 104, 0.24);
  transform: translateY(-1px);
  outline: none;
}

body.login-template-page .login-btn:active {
  transform: translateY(0);
}

body.login-template-page .login-btn:disabled {
  cursor: progress;
  opacity: 0.74;
  transform: none;
}

body.login-template-page .login-btn-icon {
  font-size: 1.12rem;
  line-height: 1;
}

body.login-template-page .login-error {
  min-height: 20px;
  margin: -2px 0 0;
  color: var(--login-danger);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

body.login-template-page input:-webkit-autofill,
body.login-template-page input:-webkit-autofill:focus {
  transition: background-color 0s 600000s, color 0s 600000s;
  -webkit-text-fill-color: var(--login-ink);
}

@media (max-width: 760px) {
  body.login-template-page .login-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.login-template-page .brand-header {
    min-height: 164px;
    padding: 22px;
  }

  body.login-template-page .brand-header::before {
    width: 150px;
    height: 150px;
  }

  body.login-template-page .brand-header::after {
    left: 22px;
    top: 22px;
    width: 64px;
    height: 64px;
  }

  body.login-template-page .login-logo {
    width: min(210px, 58vw);
    max-height: 150px;
  }

  body.login-template-page .login-form {
    padding: 24px 18px 26px;
  }
}

@media (max-width: 420px) {
  body.login-template-page .login-shell {
    padding: 12px;
  }

  body.login-template-page input {
    min-height: 50px;
  }
}
