/* Globaler Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f1d9;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Container für das Login-Formular */
.login-container {
    background-color: #fff;
    border: 2px solid #70913D;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Überschrift */
.login-container h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #70913D;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon-Stil für die Biene */
.bee-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

/* Formular-Gruppen */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #70913D;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #70913D;
    border-radius: 5px;
    font-size: 16px;
}

/* Wrapper für das Passwortfeld mit Toggle-Button */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding: 10px;
    padding-right: 40px; /* Platz für den Toggle-Button */
    border: 1px solid #70913D;
    border-radius: 5px;
    font-size: 16px;
}

.password-wrapper button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #70913D;
}

/* Anmeldebutton */
button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #70913D;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: #70913D;
}

/* Fehlermeldungen (serverseitig) */
.error-message {
    color: #d9534f;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

/* Modal-Stile */
.modal {
    /* Standardmäßig versteckt */
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Für zentrierte Anzeige wird in showPopup() "flex" gesetzt */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 80%;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Schließen-Symbol */
.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* OK-Button im Modal */
#modal-ok {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #70913D;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#modal-ok:hover {
    background-color: #70913D;
}

/* Responsive Anpassungen */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .modal {
        display: none;
        position: fixed;
        z-index: 999;
        left: 0; top: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.4);
        justify-content: center;
        align-items: center;
    }

    .modal-content {
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        max-width: 400px;
        text-align: center;
    }

    .close {
        position: absolute;
        right: 20px;
        top: 15px;
        font-size: 18px;
        cursor: pointer;
    }

    .modal-content button {
        margin-top: 15px;
        padding: 8px 16px;
    }

}
