.formBody {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f3f4f6;
    font-family: Arial, sans-serif;
    margin: 0;
    flex-direction: column;
}

.loginModal,
.modal {
    display: none;
    /* Modal standardmäßig ausblenden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 2em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 350px;
    border-radius: 8px;
}

.loginModal h2,
.modal h2 {
    color: darkblue;
    margin-top: 0;
    text-align: center;
}

.loginModal .close,
.modal .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
}

.loginModal .microsoft-login {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #2a2a2a;
    color: #fff;
    border: none;
    border-radius: 4px;
    margin-bottom: 1em;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
}

.loginModal .form-group,
.modal .form-group {
    margin-bottom: 1em;
}

.loginModal label,
.modal label {
    display: block;
    margin-bottom: 0.5em;
    color: #333;
    /* Ensure label color is set */
}

.loginModal input,
.modal input {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.loginModal button,
.modal button {
    width: 100%;
    padding: 0.5em;
    margin-top: 1em;
    border: none;
    border-radius: 4px;
    background: #333;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
}

.loginModal button:hover,
.modal button:hover {
    background: #555;
}

.loginModal a,
.modal a {
    display: block;
    margin-top: 1em;
    text-align: center;
    color: #007BFF;
    text-decoration: none;
}

.loginModal a:hover,
.modal a:hover {
    text-decoration: underline;
}

/* Additional styles for generic modal */
.modal {
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 40px;
    /* Platz für das Icon */
    height: 40px;
    /* Einheitliche Höhe */
    line-height: 40px;
    /* Gleiche Ausrichtung */
}

.toggle-password-icon {
    position: absolute;
    top: 50%;
    /* Zentrierung */
    right: 10px;
    /* Abstand von der rechten Seite */
    transform: translateY(-50%);
    /* Vertikale Zentrierung */
    cursor: pointer;
    font-size: 1.2em;
    /* Größe des Icons */
    color: silver;
}

.toggle-password-icon:hover {
    color: #000;
    /* Farbe beim Hover */
}


/* Media Query for smaller screens */
@media (max-width: 768px) {

    .loginModal,
    .modal {
        width: 80%;
        /* Adjust the width to 80% for smaller screens */
    }
}