/* =========================================================
   WKW Leo – Login: Helles & freundliches Redesign
   1:1 gleiche Klassen, nur Farben angepasst
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;                /* helles Grau statt dunkler Gradient */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: #ffffff;                /* weiß */
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .05);
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #7dd3fc, #38bdf8); /* helles Blau */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.logo-text {
    color: #1f2937;                     /* dunkler Text */
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo-subtitle {
    color: #6b7280;                     /* mittleres Grau */
    font-size: 14px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    color: #1f2937;                     /* dunkler Text */
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: #f3f4f6;                /* helles Grau */
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px 20px;
    color: #1f2937;                     /* dunkler Text */
    font-size: 16px;
    transition: all .3s ease;
}

.form-input::placeholder {
    color: #9ca3af;                     /* helles Grau */
}

.form-input:focus {
    outline: none;
    border-color: #7dd3fc;              /* helles Blau */
    box-shadow: 0 0 0 3px rgba(125, 211, 252, .3);
}

.login-btn {
    width: 100%;
    background: linear-gradient(45deg, #7dd3fc, #38bdf8);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease;
    margin-bottom: 20px;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
}

.register-link {
    text-align: center;
    color: #6b7280;                     /* mittleres Grau */
    font-size: 14px;
}

.register-link a {
    color: #38bdf8;                     /* helles Blau */
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

.error-message {
    background: #fee2e2;                /* helles Rot */
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 15px;
    color: #991b1b;                     /* dunkles Rot */
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background: #d1fae5;                /* helles Grün */
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 15px;
    color: #065f46;                     /* dunkles Grün */
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;                     /* helles Grau */
    font-size: 18px;
}

.input-group .form-input {
    padding-left: 50px;
}

@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 30px;
    }
}


.footer {
    text-align: center;
    padding: 20px;
    background: #f5f5f5; /* Dein bestehender Grauton */
    margin-top: 40px;
    border-top: 1px solid #e0e0e0; /* Optionale Trennlinie oben */
    font-family: Arial, sans-serif; /* Passt zu deinem Design */
    font-size: 14px;
    color: #666;
}

.footer a {
    color: #3498db; /* Blauer Link-Farbton aus deinem Design */
    text-decoration: none;
    margin: 0 10px; /* Abstand zwischen Links */
    transition: color 0.3s ease; /* Sanfter Übergang */
}

.footer a:hover {
    color: #2980b9; /* Dunkleres Blau beim Hover */
    text-decoration: underline; /* Unterstreichung für bessere UX */
}

/* Responsive: Auf Mobile kleiner */
@media (max-width: 600px) {
    .footer {
        padding: 15px;
        font-size: 12px;
    }
    
    .footer a {
        display: block; /* Links untereinander auf Mobile */
        margin: 5px 0;
    }
}