* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    background: white;
    padding: 3px;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.6);
    border-color: #667eea;
}

.login-header h1 {
    color: #333;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.login-header h3 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.language-switcher {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
}

.lang-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.lang-btn:hover {
    color: #667eea;
    background: #f0f0f0;
}

.lang-btn.active {
    background: #667eea;
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i:not(.toggle-password i) {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 45px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-wrapper input.error {
    border-color: #f44336;
}

.input-wrapper input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.toggle-password {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    min-width: 35px;
}

.toggle-password i {
    font-size: 18px;
}

.toggle-password:hover {
    color: #667eea;
}

.toggle-password:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    cursor: pointer;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-button.loading {
    color: transparent;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {transform: rotate(360deg);}
}

.demo-credentials {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

.demo-credentials p {
    line-height: 1.5;
}

.demo-credentials p:first-child {
    color: #666;
    font-size: 12px;
    margin: 0 0 2px 0;
}

.demo-credentials p:last-child {
    color: #667eea;
    font-size: 13px;
    font-weight: 500;
    margin: 2px 0 0 0;
}

.footer {
    margin-top: 20px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.footer a {
    color: #999;
    text-decoration: none;
}

.footer a:hover {
    color: #667eea;
}

.captcha-wrapper {
    margin: 15px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.captcha-error {
    color: #f44336;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
    padding: 5px;
    background-color: #ffebee;
    border-radius: 4px;
    width: 100%;
}

.captcha-success {
    color: #4CAF50;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

.lockout-timer {
    margin-top: 15px;
    padding: 10px;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 5px;
    color: #c62828;
    font-size: 14px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px;
    }
    
    .login-header h1 {
        font-size: 28px;
    }
    
    .login-header h3 {
        font-size: 14px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .language-switcher {
        padding: 3px;
    }
    
    .lang-btn {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .demo-credentials p:first-child {
        font-size: 11px;
    }
    
    .demo-credentials p:last-child {
        font-size: 12px;
    }
}

@media print {
    body {
        background: white;
    }
    
    .login-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .login-button, .captcha-wrapper, .language-switcher {
        display: none;
    }
}