/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Login Container */
.login-container {
    display: flex;
    max-width: 1400px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-height: 800px;
}

/* Login Card */
.login-card {
    flex: 1;
    padding: 50px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

.login-header {
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #3B82F6;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
}

.logo span {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Login Body */
.login-body {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.login-body h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-subtitle {
    color: #64748b;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label i {
    color: #3B82F6;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.form-group input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 45px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #3B82F6;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
    font-size: 0.95rem;
}

.checkbox input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    cursor: pointer;
}

.forgot-password {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

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

/* Login Footer */
.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.login-footer p {
    color: #64748b;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.login-footer code {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    color: #3B82F6;
    font-weight: 600;
}

.system-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #059669;
    font-weight: 500;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Features Section */
.login-features {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.login-features h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-features h3 i {
    color: #F59E0B;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #3B82F6;
}

.feature i {
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature h4 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Sidebar */
.login-sidebar {
    flex: 0 0 500px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.sidebar-content {
    flex: 1;
}

.sidebar-content h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f8fafc;
}

.sidebar-content h2 i {
    color: #3B82F6;
}

/* Insight Card */
.insight-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.insight-header i {
    font-size: 2rem;
    color: #10B981;
}

.insight-header h3 {
    font-size: 1.5rem;
    color: #f8fafc;
}

.insight-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

/* System Info */
.system-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.system-info h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f8fafc;
}

.system-info h3 i {
    color: #F59E0B;
}

.system-info ul {
    list-style: none;
}

.system-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.system-info li:last-child {
    border-bottom: none;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.active {
    background: #10B981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-dot.inactive {
    background: #EF4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.status-text {
    margin-left: auto;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .login-container {
        flex-direction: column;
        max-width: 800px;
    }
    
    .login-sidebar {
        flex: none;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .login-container {
        min-height: auto;
    }
    
    .login-card, .login-sidebar {
        padding: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .insight-stats {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .login-body h2 {
        font-size: 1.5rem;
    }
}
