/* Login-Seite Styling */
:root {
    /* Hauptfarben */
    --primary: #1A6C41;              /* Dunkelgrün */
    --primary-dark: #104736;         /* Dunkelgrün dunkel / Schriftfarbe */
    --primary-light: #84AE94;        /* Dunkelgrün Abstufung */
    --success: #7DB942;              /* Grün */
    --success-light: #b8d494;        /* Grün Abstufung */
    --error: #ef4444;
    --warning: #ECCE17;              /* Gelb */
    --warning-light: #E9D565;        /* Gelb Abstufung */

    /* Türkis-Palette */
    --turquoise: #72BEB7;
    --turquoise-light: #B2D7CE;
    --turquoise-lightest: #EAF5F4;

    /* Hintergründe */
    --bg: #EAF5F4;
    --card: #ffffff;

    /* Text */
    --text: #104736;                 /* Schriftfarbe dunkelgrün */
    --text-muted: #1A6C41;           /* Gedämpfter Text */

    /* Ränder */
    --border: #B2D7CE;               /* Türkis hell */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #72BEB7 0%, #1A6C41 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.logo h1 {
    font-size: 24px;
    color: var(--text);
    font-weight: 700;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-form h2 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 108, 65, 0.1);
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    margin-bottom: 16px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 108, 65, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.switch-form {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.switch-form a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.switch-form a:hover {
    text-decoration: underline;
}

.message {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: #b8d494;
    color: #104736;
    border: 1px solid #7DB942;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 24px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
}
