/* Skript: login.css */
/* Stil für die gesamte Seite und das Pop-up */
body {
    font-family: 'Arial', sans-serif;
    background-color: #0b1a20;
    color: #ecf0f1;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

.wrapper {
    background-color: #1b2a38;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
    text-align: center;
    border: 1px solid #0b1a20;
}

img.logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    user-select: none;
    pointer-events: none;
    border-radius: 50%;
    border: 5px solid #1b2a38;
}

h1 {
    color: #78c7c8;
    margin-top: 10px;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 1em;
    text-align: left;
}

label {
    display: block;
    margin-bottom: .5em;
    color: #ecf0f1;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-top: 0px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.btn {
    background-color: #1b6f91;
    color: #ecf0f1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.btn:hover {
    background-color: #155d74;
}

a {
    color: #ecf0f1;
    text-decoration: none;
}

.invalid-feedback {
    margin-top: 5px;
    color: #e74c3c;
}

/* Pop-up Fehlermeldung */

.popup {
    background-color: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    max-width: 460px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: normal;
    margin-bottom: 5px; /* Abstand zur .wrapper-Box */
    box-sizing: border-box; /* Padding wird innerhalb der Breite berücksichtigt */
}

/* Schließen-Button im Popup */
.popup .close-btn {
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px; /* Gleiche Breite & Höhe für den Kreis */
    height: 24px;
    background: white;
    color: #e74c3c;
    border-radius: 50%; /* Macht es rund */
    font-size: 18px; /* Größe des X */
    line-height: 24px; /* Zentriert das X */
    text-align: center;
    border: 2px solid #e74c3c; /* Optional: Rand für besseren Kontrast */
}

/* Fehlermeldungen direkt unter dem Benutzernamen & Passwortfeld */
.invalid-feedback {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}