/* css/login.css */
/* PERUNIS Operator Login Styles */

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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

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

.logo h1 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 2em;
}

.logo p {
    color: #666;
    font-size: 1.1em;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

.form-group input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.login-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.login-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #c62828;
    font-weight: 500;
}

.warning {
    background: #fff3e0;
    color: #ef6c00;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #ef6c00;
    font-weight: 500;
}

.demo-accounts {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid #e9ecef;
}

.demo-accounts h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.demo-accounts p {
    margin: 5px 0;
    color: #666;
}

.attempts-info {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 30px 20px;
    }

    .logo h1 {
        font-size: 1.8em;
    }

    .form-group input {
        padding: 10px;
    }

    .login-btn {
        padding: 10px;
    }
}

/* Animation für Loading-State */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.login-btn.loading {
    animation: pulse 1.5s infinite;
}

/* Focus Styles für Accessibility */
.form-group input:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.login-btn:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
