/* --- Design - Strukturierter & Lesbarer Code --- */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #0f172a 0%, #071028 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: white;
}

.box {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.error {
    color: #ff6b6b;
    margin-bottom: 10px;
}

.logo-swing {
    width: 220px;
    margin: 0 auto 20px auto;
    animation: swing 3s ease-in-out infinite;
}

/* --- Animation - Optimierte Mobile-Optimierung --- */
@keyframes swing {
    0%   { transform: translateX(0px); }
    50%  { transform: translateX(8px); }
    100% { transform: translateX(0px); }
}

/* --- Mobile-Optimierung --- */
@media (max-width: 600px) {
    .logo-swing {
        animation: none;
    }
}
/* --- Button-Animation (hinzugefügt) --- */
button {
  transition: all 0.3s ease; /* Smoothe Übergänge */
  border: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(135deg, #1e3a8a, #1e40af); /* Blauer Gradient */
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  outline: none; /* Vermeidet umrandete Focus-Rand bei Tabulieren */
}

button:hover {
  transform: scale(1.05); /* Vergrößerung auf Hover */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

button:active {
  transform: scale(0.98); /* Drücken-Animation */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* --- Loading-State (optional) --- */
button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
