/* 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;
    }
}

/* Erweiterte Styles für login.css */

.course-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.course-list li {
    background: #f5f5f5;
    border-left: 4px solid #4CAF50;
    margin: 10px 0;
    padding: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.course-list li:hover {
    background: #e8f5e9;
    transform: translateX(5px);
}

.course-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
}

.course-list a:hover {
    color: #4CAF50;
}

.logout-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #f44336;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.logout-link:hover {
    background: #d32f2f;
}

/* Erfolgsmeldung */
.success-info {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.success-info strong {
    color: #2e7d32;
}
