:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #BBDEFB;
    --sidebar-bg: #1a2332;
    --sidebar-hover: #243142;
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --warning-color: #FFC107;
}

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

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

/* Login Wrapper */
.login-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* Background */
.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.login-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(25, 118, 210, 0.8), 
        rgba(33, 150, 243, 0.6));
}

/* Container */
.login-container {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container .row {
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
}

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

/* Info Panel */
.login-info {
    background: linear-gradient(135deg, #1565C0, #2196F3);
    color: white;
    padding: 50px;
    height: 100%;
    display: flex;
    align-items: center;
}

.company-info h2 {
    font-weight: 600;
    font-size: 2rem;
}

.company-info p {
    opacity: 0.9;
}

.features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    opacity: 0.95;
}

.feature-item i {
    color: #4CAF50;
    font-size: 1.2rem;
}

/* Form Panel */
.login-form-container {
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

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

.login-form-wrapper h3 {
    color: #333;
    font-weight: 600;
}

.form-control {
    border: 2px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.1);
}

.input-group-text {
    border: 2px solid #e0e0e0;
    border-right: none;
    background: white;
}

.input-group .form-control {
    border-left: none;
}

.input-group .btn-light {
    border: 2px solid #e0e0e0;
    border-left: none;
    background: white;
}

.form-label {
    font-weight: 500;
    color: #555;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary:disabled {
    background: var(--primary-light);
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }
    
    .login-container {
        padding: 10px;
        height: auto;
        min-height: 100vh;
    }
    
    .login-container .row {
        border-radius: 15px;
        margin: 10px;
    }
    
    .login-form-container {
        padding: 30px 20px;
        min-height: auto;
    }
    
    .login-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 20px 15px;
    }
    
    .login-form-wrapper h3 {
        font-size: 1.5rem;
    }
}

/* Alert Animation */
.alert {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}