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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.form-box {
    padding: 40px;
    display: none;
}

.form-box.active {
    display: block;
}

.form-box h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input.error {
    border-color: #e74c3c;
}

.input-group input.success {
    border-color: #27ae60;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

.hint {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

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

.form-footer {
    text-align: center;
    margin-top: 25px;
}

.form-footer p {
    color: #666;
    font-size: 14px;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #764ba2;
}

/* Erfolgsbereich */
.success-content {
    text-align: center;
    padding: 20px 0;
}

.success-content h2 {
    color: #27ae60;
    margin-bottom: 15px;
}

.success-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

#logged-username {
    color: #667eea;
    font-weight: bold;
}

/* Benachrichtigungen */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 350px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: #27ae60;
    color: white;
}

.notification.error {
    background: #e74c3c;
    color: white;
}

.notification.info {
    background: #3498db;
    color: white;
}

/* Responsive Design */
@media (max-width: 480px) {
    .form-box {
        padding: 30px 25px;
    }

    .form-box h2 {
        font-size: 24px;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

