/* Allgemein */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #8f8f8f; /* Hintergrundfarbe */
    color: #333; /* Textfarbe */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Setzt die Seite auf die gesamte Bildschirmhöhe */
}

/* Header */
header {
    background-color: #1a1a1a; /* Dunkler Hintergrund */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 30px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten für den Header */
}

header img.logo {
    height: 40px;
    object-fit: contain;
}

/* Hauptbereich */
main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Vertikale Ausrichtung nach oben */
    align-items: center;
    flex-grow: 1;
    background-color: #000000; /* Schwarzer Hintergrund für den Hauptbereich */
    padding: 20px;
}

/* Intro */
.intro {
    text-align: center;
    margin-bottom: 20px; /* Weniger Abstand zum Anmeldeformular */
    color: white;
}

.intro h1 {
    font-size: 2.5rem;
    color: #28a745; /* Grüner Farbton aus dem Dashboard */
}

.intro .highlight {
    font-weight: bold;
}
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}


/* Login Box */
.login-box {
    background-color: #000000;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0px 22px #28a745;
    width: 100%;
    max-width: 400px;
    margin: 40px auto 0 auto;
    text-align: center;
    box-sizing: border-box;
}
.link:hover{
    color: #28a745;
}
.link{
    color: white;
    text-decoration: none;
} 

/* Eingabefelder und Button */
.login-box input,
.login-box button {
    display: block;
    width: calc(100% - 2rem); /* Innenabstand links/rechts */
    margin: 0 auto 1rem auto; /* zentriert + Abstand unten */
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.login-box input{
    background-color: #d4d4d4;
    
}
/* Button Styling */
.login-box button {
    background-color: #28a745;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-box button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}
/* Optional: Button */
.login-box button {
    background-color: #28a745;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-box button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

input:focus, select:focus, textarea:focus {
    border-color: #28a745; /* Grüner Rand bei Fokus */
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    background-color: #28a745; /* Grüner Button */
    color: white;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #218838; /* Dunkleres Grün beim Hover */
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #1a1a1a; /* Dunkler Hintergrund */
    color: #ccc; /* Helle Textfarbe */
    text-align: center;
    padding: 1.5rem;
    font-size: 14px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
}

footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #28a745; /* Grüner Hover-Effekt */
}

footer p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

@media (max-width: 480px) {
    .login-box {
        padding: 1.5rem 1rem;
        margin: 20px 1rem; /* Abstand links und rechts auf kleinen Geräten */
    }
}

    .login-box input {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        margin-bottom: 10px;
    }
    
    .password-container {
        position: relative;
    }
    
    .password-container input {
        padding-right: 35px !important;
    }
    
    .toggle-password {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }
    
    .login-box button {
        width: 100%;
        padding: 10px;
    }