.login-page {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-container-2 {
  flex: 0 0 50%; 
  height: 100%;
}

.page-container-2.left {
  color: #fff; 
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 4rem;
}

.page-container-2.right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  box-shadow: rgba(0, 0, 0, 0.20) 0px 5px 15px 0px;
  min-width: 360px;
  max-width: 420px;
}

.login-card h1 {
  font-size: 1rem;
  margin-top: 2px;
}

.login-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.web-project-title {
  display: flex;
  flex-direction: row;
  background-color: var(--clr-bg);
  align-items: center;
  gap: .6rem;
  border-radius: 5rem;
  height: 2.5rem;
  padding: 0 15px 0 12.5px;
}

.web-project-title.spacer {
  margin-bottom: 1.5rem;
}

#login-username:-webkit-autofill,
#login-username:-webkit-autofill:hover,
#login-username:-webkit-autofill:focus,
#login-password:-webkit-autofill,
#login-password:-webkit-autofill:hover,
#login-password:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--clr-text);
}

.login-row input, 
#change-category-select {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--clr-grey-600);
  font: inherit;
  font-size: .8rem;
  font-variation-settings: 'wght' 600, 'wdth' 7, 'ital' 0;
  width: 100%;
}

.login-error {
  text-align: center;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

form#login-form {
  width: 100%;
}

.login-hero-text-wrapper {
  overflow: hidden;
  display: inline-block;
  transition: height 220ms ease;
}

.login-hero-text {
  line-height: 1.1;
}

.login-hero-top {
  font-size: 2rem;
  font-variation-settings: 'wght' 800, 'wdth' 7, 'ital' 0;
  margin-bottom: 0.2rem;
}

.login-hero-bottom {
  font-size: 2rem;
  font-variation-settings: 'wght' 500, 'wdth' 7, 'ital' 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

/* Text, der getippt wird */
.login-hero-bottom-content {
  display: inline-block;
  position: relative;
  white-space: normal;
}

/* Cursor hängt direkt am Text */
.login-hero-bottom-content::after {
  content: "▍";
  display: inline-block;
  margin-left: 0.08em;
  font-size: 0.8em;
  opacity: 0.75;
  animation: loginCursorBlink 1s steps(2, start) infinite;
}

/* Ein-/Ausblend-States */
.login-hero-visible {
  animation: loginHeroFadeIn 220ms ease-out forwards;
}

.login-hero-hiding {
  animation: loginHeroFadeOut 200ms ease-in forwards;
}

@keyframes loginCursorBlink {
  0%,
  50% {
    opacity: 0.75;
  }
  50.01%,
  100% {
    opacity: 0.1;
  }
}

@keyframes loginHeroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loginHeroFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (max-width: 600px) {
  .login-page {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .page-container-2 {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
  }

  .page-container-2.left {
    height: 30%;
    padding: 2rem 1.5rem 1.25rem;
  }

  .page-container-2.right {
    padding: 2rem 1.5rem 2rem;
    justify-content: center;
  }

  .login-hero-top,
  .login-hero-bottom {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .login-card {
    min-width: 0;
    width: 100%;
    max-width: 420px;
  }
}