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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    height: 100vh;
}

.login-left {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.background-image {
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="flag" patternUnits="userSpaceOnUse" width="100" height="100"><rect width="100" height="100" fill="%23dc2626"/><polygon points="20,20 80,20 50,50" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="1000" height="1000" fill="url(%23flag)"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 2rem;
}

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

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.logo h1 {
    color: #dc2626;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.login-form h2 {
    color: #1f2937;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container i {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    z-index: 1;
}

.input-container input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-container input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.toggle-password {
    position: absolute !important;
    right: 1rem !important;
    left: auto !important;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #dc2626;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-btn:hover {
    background: linear-gradient(135deg, #991b1b, #7f1d1d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

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

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-left {
        flex: 0.3;
    }
    
    .login-right {
        flex: 0.7;
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .login-left {
        display: none;
    }
    
    .login-right {
        flex: 1;
    }
}
