/* eBewerter Login – 3 Modul-Kacheln (HDLMonitor / Pricing / VKL-Bericht) */
.login-brand.login-brand-modules {
  --module-red-weak: rgba(139, 26, 58, 0.22);
  --module-red-weak-hover: rgba(139, 26, 58, 0.38);
  --module-red-strong: rgba(139, 26, 58, 0.62);
  --module-red-strong-hover: rgba(168, 32, 68, 0.78);
  --login-module-name-size: calc(0.9rem * 1.2);
  --login-module-tag-size: calc(var(--login-module-name-size) * 0.75);
  --login-module-stack-gap: 0.14rem;
  padding: 0;
  justify-content: stretch;
  align-items: stretch;
}
.login-brand.login-brand-modules::before,
.login-brand.login-brand-modules::after {
  z-index: 0;
}
.login-module-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
}
.login-module-tile {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.85rem 0.65rem 0.85rem 1.45rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
  cursor: pointer;
}
.login-module-tile.is-active {
  padding-left: 1.45rem;
}
.login-module-tile:last-child {
  border-bottom: none;
}
.login-module-tile:not(.is-active)::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid rgba(255, 255, 255, 0.42);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.42);
  transform: translateY(-50%) rotate(-45deg);
  opacity: 0.45;
  transition:
    left 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
}
.login-module-tile:not(.is-active) {
  background: var(--module-red-weak);
  color: rgba(255, 255, 255, 0.82);
}
.login-module-tile:not(.is-active):hover {
  background: var(--module-red-weak-hover);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}
.login-module-tile:not(.is-active):hover::before {
  left: 0.9rem;
  opacity: 0.9;
  transform: translateY(-50%) rotate(-45deg) translateX(1px);
}
.login-module-tile:not(.is-active):hover .login-module-logo {
  opacity: 1;
}
.login-module-tile.is-active::before {
  content: "";
  position: absolute;
  left: 0.48rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translateY(-50%) rotate(-45deg);
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.55));
  pointer-events: none;
}
.login-module-tile.is-active {
  background: linear-gradient(
    155deg,
    var(--module-red-strong) 0%,
    rgba(74, 15, 36, 0.75) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: #fff;
}
.login-module-tile.is-active .login-module-logo {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}
.login-module-tile.is-active:hover {
  background: linear-gradient(
    155deg,
    var(--module-red-strong-hover) 0%,
    rgba(74, 15, 36, 0.85) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 16px rgba(139, 26, 58, 0.45);
}
.login-module-logo {
  display: block;
  width: auto;
  max-width: 13.125rem;
  height: auto;
  max-height: 2.625rem;
  margin: 0 0 var(--login-module-stack-gap);
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity 0.18s ease, filter 0.18s ease;
}
.login-module-name {
  display: block;
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-size: var(--login-module-name-size);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
}
.login-module-tag {
  display: block;
  margin: 0;
  font-family: "Open Sans", "Segoe UI", system-ui, sans-serif;
  font-size: var(--login-module-tag-size);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.35;
  text-align: center;
  max-width: 14rem;
  opacity: 0.72;
}
.login-module-tile:not(.is-active):hover .login-module-tag {
  opacity: 0.88;
}
.login-module-tile.is-active .login-module-tag {
  opacity: 0.9;
}
@media (max-width: 719px) {
  .login-brand.login-brand-modules {
    --login-module-name-size: calc(0.79rem * 1.2);
    min-height: 9.5rem;
  }
  .login-module-nav {
    flex-direction: row;
  }
  .login-module-tile {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }
  .login-module-tile:last-child {
    border-right: none;
  }
  .login-module-tile:not(.is-active) {
    padding: 1.35rem 0.55rem 0.85rem;
  }
  .login-module-tile.is-active {
    padding: 1.35rem 0.55rem 0.85rem;
  }
  .login-module-tile.is-active::before {
    left: 50%;
    top: 0.42rem;
    width: 0.5rem;
    height: 0.5rem;
    border-right-width: 2.5px;
    border-bottom-width: 2.5px;
    transform: translateX(-50%) rotate(45deg);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
  }
  .login-module-tile:not(.is-active)::before {
    left: 50%;
    top: 0.45rem;
    transform: translateX(-50%) rotate(45deg);
  }
  .login-module-tile:not(.is-active):hover {
    transform: translateY(-3px);
  }
  .login-module-tile:not(.is-active):hover::before {
    left: 50%;
    top: 0.65rem;
    transform: translateX(-50%) rotate(45deg) translateY(1px);
  }
  .login-module-tile.is-active:hover {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.24),
      0 0 14px rgba(139, 26, 58, 0.45);
  }
  .login-module-name {
    letter-spacing: 0.08em;
  }
  .login-module-tag {
    max-width: 7.5rem;
    line-height: 1.3;
  }
  .login-module-logo {
    max-width: 10.5rem;
    max-height: 2.1rem;
  }
}
