/* ============================================= */
/* 1. LOGIN-CONTAINER                          */
/* ============================================= */

.login-container {
    width: 100%;
    max-width: 420px; /* Optimale Breite für ein Formular */
    
    /* KORREKTUR: Dies ist die wichtigste Änderung. Sie zentriert die Box. */
    /* 80px Abstand nach oben/unten, 'auto' für links/rechts zentriert. */
    margin: 80px auto; 
    
    /* ANPASSUNG: Etwas dunklerer Hintergrund für besseren Kontrast zu den Feldern */
    background-color: rgba(10, 10, 10, 0.75);
    
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(201, 39, 39, 0.7);
    border: 1px solid #c92727;
    box-sizing: border-box;
}

.login-container h2 {
    margin: 0 0 30px 0; /* Etwas mehr Abstand nach unten */
    text-align: center;
    color: #ff9800; 
    font-size: 2.2em;
    letter-spacing: 1.5px;
}

/* ============================================= */
/* 2. FORMULAR-ELEMENTE (mit Kontrastanpassung)  */
/* ============================================= */

.form-group {
    margin-bottom: 22px; /* Etwas mehr vertikaler Abstand */
    text-align: left;
}

.login-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ccc; /* ANPASSUNG: Leicht gedämpftes Weiß für bessere Lesbarkeit */
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #444; /* ANPASSUNG: Etwas hellerer Rand für bessere Sichtbarkeit */
    border-radius: 5px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease; /* Weichere Übergänge */
}

.login-container input:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5); /* ANPASSUNG: Oranger Schein beim Fokussieren */
}

.login-container button {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background-color: #ff9800;
    
    /* ANPASSUNG: Weiße Schrift für maximalen Kontrast auf orangem Grund */
    color: #ffffff; 
    
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-container button:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4); /* ANPASSUNG: Leuchteffekt beim Hovern */
}

/* ============================================= */
/* 3. FEHLERMELDUNG                             */
/* ============================================= */

.error-message {
    padding: 12px; 
    border-radius: 5px; 
    font-weight: bold; 
    margin-bottom: 20px; 
    text-align: center;
    color: #ffffff; 
    background-color: rgba(201, 39, 39, 0.4); 
    border: 1px solid #c92727; 
}