:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Login Page Specific */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.form-control {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    box-shadow: none;
    border-color: #667eea;
}

.input-group-text {
    border-radius: 10px 0 0 10px;
    border: 1px solid #e0e0e0;
    background-color: white;
}

/* Feature Icons */
.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* 2FA Code Input */
.code-inputs input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.code-inputs input:focus {
    border-color: #667eea;
    outline: none;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}

/* Supplier Login Page */
.supplier-login-left {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.supplier-login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

/* PIN Login */
.pin-input {
    font-size: 24px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #e0e0e0;
}

.pin-input:focus {
    border-color: #667eea;
    box-shadow: none;
}

/* Fingerprint Scanner */
.fingerprint-scanner {
    background: linear-gradient(45deg, #f8f9fa 25%, #e9ecef 25%, #e9ecef 50%, #f8f9fa 50%, #f8f9fa 75%, #e9ecef 75%);
    background-size: 20px 20px;
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-body {
        padding: 2rem !important;
    }
    
    .code-inputs input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bg-light {
        background-color: #1a1a1a !important;
    }
    
    .text-muted {
        color: #999 !important;
    }
    
    .card {
        background-color: #2d2d2d;
        color: #fff;
    }
    
    .form-control {
        background-color: #333;
        border-color: #444;
        color: #fff;
    }
    
    .form-control:focus {
        background-color: #333;
        color: #fff;
    }
}