/* LOGIN STYLES */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* Entfernt Scrollbalken */
}

.login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Füllt die gesamte Höhe */
    background: url('../../assets/images/hero.jpg') no-repeat center center/cover; /* Hintergrundbild */
    position: relative;
}

.login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Abdunklung */
    z-index: 1;
}

.login__container {
    position: relative; /* Überlagert das abgedunkelte Bild */
    z-index: 2;
    width: 100%;
    max-width: 400px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    text-align: center;
}

.login__title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* ERROR MESSAGE STYLES */
.login__error {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff4d4d; /* Roter Hintergrund */
    color: #ffffff; /* Weiße Schriftfarbe */
    padding: 0.8rem 1rem;
    border-radius: 8px; /* Abgerundete Ecken */
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.login__error i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    color: #ffffff; /* Weißes Icon */
}

.login__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login__form-group {
    text-align: left;
    margin-bottom: 1rem;
}

.login__form-group label {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.login__form-group input {
    width: calc(100% - 20px); /* Gleicher Außenabstand */
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    margin: 0 auto; /* Zentriert den Input */
}

/* BUTTON STYLES */
.login__button {
    background-color: #00274d; /* Hintergrundfarbe */
    color: #ffffff; /* Textfarbe */
    padding: 0.8rem;
    border: none;
    border-radius: 50px; /* Vollständig abgerundet */
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.login__button:hover {
    background-color: #003a6b; /* Leicht hellerer Blauton beim Hover */
    transform: translateY(-2px); /* Leichtes Schweben beim Hover */
}

.login__footer {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.login__footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.login__footer a:hover {
    color: var(--accent-color);
}

/* RESPONSIVE STYLES */
@media screen and (max-width: 768px) {
    .login__container {
        padding: 1.5rem;
        margin: 0 1.5rem; /* Abstand nach links und rechts für Smartphones */
        box-sizing: border-box; /* Zieht das Padding korrekt ein */
    }

    .login__title {
        font-size: 1.8rem;
    }

    .login__form-group label {
        font-size: 0.85rem;
    }

    .login__button {
        font-size: 0.95rem;
    }
}
