:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --error-bg: #fee2e2;
    --error-text: #b91c1c;
    --card-bg: #ffffff;
    --input-bg: #f1f5f9;
    --font-family: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    display: flex;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    max-height: 800px;
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-left {
    position: relative;
    flex: 1.2;
    background: url('login_bg.png') no-repeat center center / cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: #fff;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(15, 23, 42, 0.9));
    z-index: 1;
}

.login-left .content {
    position: relative;
    z-index: 2;
    max-width: 450px;
}

.login-left h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.login-left p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #60a5fa;
    border-radius: 50%;
}

.login-right {
    flex: 0.8;
    background-color: var(--card-bg);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-logo {
    display: none;
    margin-bottom: 30px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.header {
    margin-bottom: 40px;
}

.header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.error-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--error-bg);
    color: var(--error-text);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.input-container {
    position: relative;
}

.input-container input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    background-color: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.input-container input:focus {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.input-container input:focus + .input-icon {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
}

.remember-me input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.footer {
    margin-top: 40px;
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    body {
        overflow: auto; /* Allow scroll on touch devices if content is too large */
    }
    .login-container {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        flex: 1;
        padding: 40px 20px;
        overflow-y: auto;
    }
    
    .mobile-logo {
        display: block;
        text-align: center;
    }
    
    .mobile-logo h2 {
        font-size: 2.2rem;
        font-weight: 800;
        color: var(--primary-color);
    }
}
