/* ===== Grundlayout ===== */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #1f2937;
}

/* Standardbereich von Bootstrap auf Loginseite luftiger machen */
main.container.py-4 {
  max-width: 100%;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ===== Login-Seite ===== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at top left, rgba(234, 179, 8, 0.08), transparent 22%),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.06), transparent 24%),
    #ffffff;
}

/* ===== Logo ===== */
.login-logo {
  text-align: center;
  margin-bottom: 22px;
}

.login-logo img {
  width: 180px !important;
  max-width: 180px !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

/* ===== Login-Spalte ===== */
.login-wrapper .col-12.col-md-6.col-lg-4 {
  max-width: 440px;
}

/* ===== Card modern ===== */
.login-wrapper .card {
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.08),
    0 8px 20px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.login-wrapper .card-body {
  padding: 32px;
}

/* ===== Überschrift ===== */
.login-wrapper h1.h3 {
  margin-bottom: 24px;
  text-align: center;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

/* ===== Formular ===== */
.login-wrapper .form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.login-wrapper .form-control {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #dbe3ea;
  background: #ffffff;
  padding-left: 14px;
  padding-right: 14px;
  font-size: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.login-wrapper .form-control:hover {
  border-color: #cbd5e1;
}

.login-wrapper .form-control:focus {
  border-color: #eab308;
  box-shadow: 0 0 0 0.22rem rgba(234, 179, 8, 0.16);
  background: #ffffff;
}

/* ===== Button ===== */
.login-wrapper .btn-primary {
  min-height: 52px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, #eab308, #f59e0b);
  color: #332600;
  box-shadow: 0 10px 24px rgba(234, 179, 8, 0.24);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.login-wrapper .btn-primary:hover,
.login-wrapper .btn-primary:focus {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #d4a106, #e18a00);
  color: #332600;
  box-shadow: 0 14px 28px rgba(234, 179, 8, 0.30);
}

.login-wrapper .btn-primary:active {
  transform: translateY(0);
}

/* ===== Fehlermeldung ===== */
.login-wrapper .alert {
  border-radius: 14px;
  font-size: 0.95rem;
}

/* ===== Trennlinie ===== */
.login-wrapper hr {
  margin: 24px 0 16px;
  border-color: #eef2f7;
}

/* ===== Zusatztext ===== */
.login-wrapper .small.text-secondary {
  text-align: center;
  color: #6b7280 !important;
  line-height: 1.6;
}

.login-wrapper .small.text-secondary a {
  color: #b45309;
  text-decoration: none;
  font-weight: 500;
}

.login-wrapper .small.text-secondary a:hover {
  text-decoration: underline;
}

/* ===== Optional: schöne kleine Einblendung ===== */
.login-logo,
.login-wrapper .card {
  animation: loginFadeUp 0.45s ease both;
}

.login-wrapper .card {
  animation-delay: 0.08s;
}

@keyframes loginFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .login-wrapper {
    padding: 20px 12px;
  }

  .login-wrapper .card-body {
    padding: 22px 18px;
  }

  .login-logo {
    margin-bottom: 18px;
  }

  .login-logo img {
    width: 120px;
    max-width: 60%;
  }

  .login-wrapper h1.h3 {
    font-size: 1.5rem;
  }
}