/* =========================================
   Modernes Login-Layout – Dunkelblau-Korrektur
   ========================================= */

/* 1. Reset & Box-Sizing */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. Root-Variablen */
:root {
  --clr-bg: #0a1435;        /* Dunkles Blau für den BODY-Hintergrund */
  --clr-card: #ffffff;      /* Helle Login-Karte */
  --clr-accent: #0077ff;    /* Button-/Focus-Akzent */
  --clr-text: #222222;      
  --clr-muted: #555555;
  --clr-error: #e74c3c;
  --radius: 0.75rem;
  --transition: 0.3s ease;
  --font-base: 'Segoe UI', Tahoma, sans-serif;
}

/* 3. BODY & HTML Hintergrund erzwingen */
html, body {
  height: 100%;
  width: 100%;
  background-color: var(--clr-bg) !important;
  font-family: var(--font-base);
  color: var(--clr-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 4. Login-Karte */
.wrapper {
  background-color: var(--clr-card);
  padding: 2rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.6s var(--transition) both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 5. Logo */
.logo {
  max-width: 200px;
  margin-bottom: 1rem;
  transition: transform var(--transition);
}
.logo:hover {
  transform: scale(1.05);
}

/* 6. Form-Gruppen */
.form-group {
  text-align: left;
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--clr-muted);
  margin-bottom: 0.25rem;
}

/* 7. Input-Felder */
.form-control {
  width: 100%;
  padding: 0.75rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--clr-accent);
}

/* Placeholder-Hint: sichtbar, aber beim Focus ausgeblendet */
.form-control::placeholder {
  color: var(--clr-muted);
  opacity: 1;
  transition: color var(--transition), opacity var(--transition);
}
.form-control:focus::placeholder {
  color: transparent;
  opacity: 0;
}

/* 8. Fehlermeldungen */
.invalid-feedback {
  color: var(--clr-error);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* 9. Button */
.btn-primary {
  background: var(--clr-accent);
  color: #fff;
  border: none;
  padding: 0.75rem;
  width: 100%;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: #005fcc;
  transform: scale(1.02);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 10. Remember-Me */
#remember-me-option {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--clr-muted);
  opacity: 0;
  transition: opacity var(--transition);
}
#remember-me-option.visible {
  opacity: 1;
}

/* 11. Alert (Login-Fehler) */
.alert-danger {
  background: rgba(231, 76, 60, 0.1);
  color: var(--clr-error);
  padding: 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* 12. Footer-Links */
.footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--clr-muted);
}
.footer a {
  color: var(--clr-accent);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* 13. Cookie-Modal */
.modal {
  display: none; /* via JS sichtbar machen */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: var(--clr-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  width: 90%;
  max-width: 400px; /* Abstand zum Browser-Rand */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.modal-content button {
  margin-top: 1rem;
}

/* 14. Responsive */
@media (max-width: 480px) {
  .wrapper {
    padding: 1.5rem;
  }
}