/* login.css – Styling für Login-Formular (responsive) */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.container {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.logo {
    width: 100%;
    max-width: 180px; /* begrenzt die Logo-Größe */
    height: auto;
    margin-bottom: 20px;
}

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

form {
    text-align: left;
}

/* Einheitliches Box-Modell und Breite für Inputs + Button */
input, button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    border-radius: 6px;
}

/* Eingabefelder */
input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
}

/* Button */
button {
    background: #1e502f;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #0056b3;
}

/* Labels */
label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

/* Fehlermeldungen */
.message {
    margin-top: 15px;
    color: red;
    font-weight: 600;
}

/* ======== Mobile Optimierung ======== */
@media (max-width: 480px) {
    body {
        padding: 10px;
        height: auto; /* Höhe flexibel für kleine Bildschirme */
    }

    .container {
        padding: 25px 20px;
        border-radius: 10px;
        max-width: 100%;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    input, button {
        font-size: 14px;
        padding: 10px;
    }

    .logo {
        max-width: 140px; /* kleineres Logo auf Smartphones */
        margin-bottom: 15px;
    }

    .message {
        font-size: 14px;
    }
}
