/* login.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Hintergrundbild für den gesamten Bildschirm */
body {
    background-image: url('loginbackground.jpg');
    background-size: cover;       /* Skaliert das Bild, um den gesamten Bildschirm zu füllen */
    background-position: center;  /* Zentriert das Bild */
    background-repeat: no-repeat; /* Bild wird nicht wiederholt */
    background-attachment: fixed; /* Bild bleibt beim Scrollen an Ort und Stelle */
}


body, html {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.login-container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    overflow: hidden;
    background-color: #ffffff;
}

/* Linke Seite */
.login-left {
    flex: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-color: #ffffff;
}

.horizontal-text {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.login-button {
    background-color: #007bff;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #0056b3;
}

/* Rechte Seite mit übereinanderliegenden Bildern */
.login-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    background-color: #000;
}

/* Bildcontainer, damit sich die Höhe je nach Bildschirmgröße anpasst */
.image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Kleinere Polsterung für besseren Platz */
    height: 45%; /* 45% pro Container ergibt 90% der rechten Spalte */
    margin-bottom: 5%; /* Kleiner Abstand zwischen den Bildern */
    background-color: #000;
}

.image {
    max-width: 100%; /* Bild passt sich der Containerbreite an */
    max-height: 100%; /* Bild bleibt innerhalb des Containers */
    height: auto; /* Beibehaltung des Seitenverhältnisses */
    width: auto;
    border-radius: 8px;
    object-fit: contain; /* Verhindert das Überlaufen des Bildes */
}
