/* ---------- Global Layout ---------- */
body.login {
  background: linear-gradient(135deg, #dbe9f8 0%, #ffffff 100%);
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Main Container ---------- */
#login {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  box-sizing: border-box;
  animation: fadeIn 0.6s ease-out;
}

/* ---------- Logo ---------- */
#login .panel-heading {
  margin-bottom: 10px;
  text-align: center;
}

#login .logo-container {
  width: 100%;
  height: 120px;
  background-image: url("img/logo.png"); /* <-- Logo-Pfad anpassen falls nötig */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-bottom: 20px;
}

/* ---------- Titel unter dem Logo ---------- */
/* Login Titel – zweizeilig gestylt */
.login-title {
  text-align: center;
  margin-bottom: 22px;
  line-height: 0.8;
}

/* Zeile 1 – groß, fett */
.login-title .lt-line1 {
  font-size: 1.45rem;
  font-weight: 700;
  display: block;
}

/* Zeile 2 – kleiner, dezenter */
.login-title .lt-line2 {
  font-size: 1rem;
  font-weight: 500;
  color: #445;
  display: block;
}

/* ---------- Labels ---------- */
#login label {
  font-weight: 600;
  color: #34495e;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 6px;
}

/* ---------- Inputs ---------- */
#login .form-control {
  width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid #ccd6e0;
  background-color: #f9fbfd;
  padding: 12px 16px;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: 0.3s;
}

#login .form-control:focus {
  border-color: #4c8bf5;
  box-shadow: 0 0 0 3px rgba(76,139,245,0.15);
  background: white;
  outline: none;
}

/* ---------- Login Button ---------- */
#login .btn-primary {
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 16px;
  background-color: #4c8bf5;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

#login .btn-primary:hover {
  background-color: #3a78e0;
}

/* ---------- Forgot Password Link ---------- */
#login a.btn-link {
  margin-top: 10px;
  font-size: 0.85rem;
  text-align: right;
  display: block;
  color: #7f8c8d;
}

#login a.btn-link:hover {
  color: #4c8bf5;
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {

  /* Skalierung ohne Sprung */
  #login {
    transform: scale(0.85);    /* <<< Ändere das nach Bedarf */
    transform-origin: top center;
    animation: none !important; /* <<< verhindert den hässlichen Sprung */
  }

  #login label {
    font-size: 0.85rem;
  }

  #login .btn-primary {
    font-size: 0.9rem;
    padding: 14px;
  }

  #login a.btn-link {
    text-align: center;
  }
}

/* ---------- Fade In Animation ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
