.login-page {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: 3fr 2fr;
}

.login-brand {
  position: relative;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-content: stretch;
  overflow: hidden;
  padding: 0;
  background: rgba(23, 23, 23, 0.86);
}

.login-brand > .login-brand-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  background: #f2f2f2;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.login-brand::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 52%;
  background: linear-gradient(
    180deg,
    rgba(23, 23, 23, 0) 0%,
    rgba(23, 23, 23, 0.68) 34%,
    rgba(23, 23, 23, 0.94) 100%
  );
  pointer-events: none;
}

.login-brand-copy,
.powered-by {
  position: relative;
  z-index: 1;
}

.login-brand-copy {
  grid-row: 2;
  width: 100%;
  max-width: none;
  padding: 24px 48px 0;
  background: transparent;
}

.login-brand-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
}

.login-brand-copy p {
  max-width: 480px;
  color: #d0d0d0;
  font-size: 17px;
}

.powered-by {
  display: flex;
  grid-row: 3;
  align-items: center;
  gap: 9px;
  align-self: stretch;
  margin-top: 0;
  padding: 16px 48px 24px;
  background: transparent;
  color: #aaa;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.powered-by img {
  width: 132px;
  height: 45px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.login-panel {
  min-height: 0;
  overflow-y: auto;
  background: #f3f4f6;
}

@media (max-width: 600px) {
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-brand {
    display: none;
  }
}
