* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}
.main-bg {
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(120deg, #e3f0ff 0%, #f8fbff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
 
}

.container {
    display: flex;
    width: 1000px;
    max-width: 100%;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Left Section Styles */
.left-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    width: 100px;   /* ⬅️ increased size from 80px to 100px */
    height: auto;
    filter: saturate(100%) contrast(100%) brightness(102%) hue-rotate(80deg);
    /* ⬆️ updated filter to make the color a bit lighter */
}

.brand-text {
    margin-left: 10px;
}

.brand-text h1, .brand-text h2 {
    color: #1a73e8;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-text h1 {
    font-size: 36px;
    margin-bottom: -5px;
}

.brand-text h2 {
    font-size: 32px;
}

.tagline {
    margin-bottom: 40px;
}

.tagline h3 {
    color: #1a73e8;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

/* Right Section Styles */
.right-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 40px;
}

.login-container {
    width: 100%;
    max-width: 350px;
}

.login-container h2 {
    color: #1a73e8;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #1557b0;
}

/* Metrics Row Styles */
.metrics-row {
    display: flex;
    justify-content: space-between;
    width: 1000px;
    max-width: 100%;
}

.metric-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    width: 23%; /* Slightly less than 25% to account for margins */
    height: 200px;
}

.metric-card h4 {
    color: #1a73e8;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Charts */
.chart {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
}

.bar-chart {
    justify-content: space-between;
}

.bar {
    width: 15%;
    background-color: #1a73e8;
    border-radius: 4px 4px 0 0;
}

.line-chart svg {
    width: 100%;
    height: 100%;
}

.line-chart path {
    fill: none;
    stroke: #1a73e8;
    stroke-width: 3;
}

.stat-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    fill: #1a73e8;
}

.stat-value {
    display: flex;
    align-items: baseline;
}

.stat-value h2 {
    color: #1a73e8;
    font-size: 32px;
    font-weight: 700;
}

.stat-value p {
    color: #1a73e8;
    font-size: 16px;
    margin-left: 5px;
}

/* Add these styles to your existing login.css file */

.captcha-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.captcha-image {
    width: 270px;
    height: 40px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 4px;
}

/* Password field styling */
.password-container {
    position: relative;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    font-size: 16px;
    z-index: 10;
}

.refresh-captcha {
    position: absolute;
    right: 10px;
    top: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #007bff;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 10;
}

.refresh-captcha:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #0056b3;
    transform: rotate(90deg);
}

.toggle-password:hover {
    color: #495057;
}

.captcha-container {
    position: relative;
    margin-bottom: 10px;
    display: block;
    width: 100%;
}


.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error, .alert-warning {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    .container {
        flex-direction: column;
        width: 95%;
    }
    
    .metrics-row {
        flex-direction: column;
        width: 95%;
    }
    
    .metric-card {
        width: 100%;
        margin-bottom: 15px;
    }
}