@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
}

.main-container {
    display: flex;
    width: 1100px;
    height: 700px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* --- LEFT SECTION --- */
.left-section {
    flex: 1.2;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: white;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.left-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
}

.brand-wrapper h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 60px;
    font-weight: 400;
    max-width: 90%;
}

.feature-list li {
    margin-bottom: 20px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #cbd5e1;
}

.feature-list li i {
    margin-right: 16px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 10px;
    border-radius: 8px;
}

/* --- RIGHT SECTION --- */
.right-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-header h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-header p {
    color: #64748b;
    margin-bottom: 40px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: #f8fafc;
}

.form-group input:focus {
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.4);
}

.footer-copyright {
    text-align: center;
    margin-top: 40px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.error-msg {
    color: #ef4444;
    background: #fef2f2;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid #fecaca;
    display: none;
}

.error-msg:not(:empty) {
    display: block;
}

/* --- MOBILE RESPONSIVENESS (Added by Agent) --- */
@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        padding: 20px 10px;
        align-items: center;
        /* Center vertically if space allows */
    }

    .main-container {
        flex-direction: column;
        width: 100%;
        height: auto;
        max-width: 400px;
        /* Nice card size on mobile */
    }

    /* Hide the marketing/brand section on mobile to save space */
    .left-section {
        display: none;
    }

    .right-section {
        padding: 40px 25px;
    }

    .login-header h2 {
        font-size: 1.8rem;
    }

    .brand-desc {
        display: none;
    }
}