body.client-auth-page.login-page {
  display: grid;
  place-items: center;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--login-form-title);
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 112, 184, 0.3), transparent 44%),
    linear-gradient(160deg, var(--login-page-bg-start), var(--login-page-bg-end));
  font-family: "DM Sans", sans-serif;
}

.login-page .client-auth-shell {
  width: 100%;
}

.premium-login-card,
.login-layout-card {
  display: block;
  width: min(calc(100% - 20px), 430px);
  min-height: 0;
  margin: 18px auto;
  overflow: hidden;
  border: 1px solid rgba(205, 225, 247, 0.14);
  border-radius: 24px;
  background: var(--login-form-bg);
  box-shadow: 0 24px 65px rgba(3, 16, 45, 0.28);
}

.login-hero-media,
.login-visual-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 210px;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(8, 201, 239, 0.16), transparent 36%),
    linear-gradient(145deg, var(--login-visual-start), var(--login-visual-end));
}

.login-hero-image,
.login-product-image {
  position: static;
  z-index: auto;
  display: block;
  width: 100%;
  height: 210px;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  opacity: 1;
  visibility: visible;
}

.login-product-image[hidden] {
  display: none;
}

.login-hero-footer {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  padding: 10px 14px 12px;
  background: linear-gradient(
    to top,
    rgba(2, 8, 20, 0.88),
    rgba(2, 8, 20, 0.28),
    transparent
  );
  pointer-events: none;
}

.login-hero-security {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8f5ff;
  font-size: 0.84rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-hero-security .material-symbols-rounded {
  color: var(--login-accent);
  font-size: 18px;
}

.login-hero-security-text {
  color: #ffffff;
  line-height: 1;
}

.premium-login-form-panel,
.login-form-panel {
  width: 100%;
  padding: 24px 22px;
  box-sizing: border-box;
  background: var(--login-form-bg);
}

.premium-login-form-inner {
  width: 100%;
}
.login-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
  box-sizing: border-box;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  margin: 0;
  color: var(--login-form-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.login-form input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid var(--login-border);
  border-radius: 11px;
  outline: none;
  background: var(--login-form-bg);
  color: var(--login-form-title);
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.login-form input:focus {
  border-color: var(--login-accent-strong);
  box-shadow: 0 0 0 4px rgba(20, 105, 239, 0.11);
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  width: 100%;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--login-border);
  border-radius: 11px;
  background: var(--login-form-bg);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.password-field:focus-within {
  border-color: var(--login-accent-strong);
  box-shadow: 0 0 0 4px rgba(20, 105, 239, 0.11);
}

.password-field input {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.password-toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 100%;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--login-border);
  background: var(--login-form-bg);
  color: var(--login-form-text);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--login-accent-strong);
}

#login-form button[type="submit"],
.login-submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 2px 0 0;
  padding: 0 18px;
  box-sizing: border-box;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(90deg, var(--login-button-start), var(--login-button-end));
  color: #ffffff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 13px 28px rgba(20, 105, 239, 0.25);
  transition:
    opacity 160ms ease,
    box-shadow 160ms ease;
}

#login-form button[type="submit"]:hover,
#login-form button[type="submit"]:focus-visible {
  box-shadow: 0 15px 32px rgba(20, 105, 239, 0.31);
}

.login-submit-spinner {
  display: none;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: login-button-spin 700ms linear infinite;
}

.login-submit-button.is-loading {
  gap: 9px;
  cursor: wait;
  opacity: 0.88;
}

.login-submit-button.is-loading .login-submit-spinner {
  display: inline-block;
}

@keyframes login-button-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-forgot-password {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--login-accent-strong);
  font-size: 0.93rem;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.login-forgot-password:hover,
.login-forgot-password:focus-visible {
  color: var(--login-accent);
  text-decoration: none;
}

.login-activate-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  box-sizing: border-box;
  border: 1px solid var(--login-border);
  border-radius: 11px;
  background: var(--login-form-bg);
  color: var(--login-accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease;
}

.login-activate-button:hover,
.login-activate-button:focus-visible {
  border-color: var(--login-accent-strong);
  background: rgba(20, 105, 239, 0.05);
  color: var(--login-accent);
}

.login-message,
.login-error {
  min-height: 0;
  margin: 10px 0 0;
  color: var(--login-error);
  font-size: 0.86rem;
  line-height: 1.4;
  font-weight: 600;
  text-align: left;
}

.login-message:empty,
.login-error:empty {
  display: none;
}

@media (max-width: 480px) {
  .premium-login-card,
  .login-layout-card {
    width: min(calc(100% - 14px), 430px);
    border-radius: 22px;
  }

  .login-hero-media,
  .login-visual-panel {
    min-height: 190px;
  }

  .login-hero-image,
  .login-product-image {
    height: 190px;
  }

  .login-hero-footer {
    padding: 8px 12px 10px;
  }

  .login-hero-security {
    gap: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}
