:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --border-color: #e1e1e1;
    --input-bg: #fcfcfc;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --brand-gradient: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    /* Deep Blue like reference */
}

body.login-page {
    background-color: var(--bg-color);
    font-family: var(--font-family);
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(79, 70, 229, 0.05) 0%, transparent 20%);
}

.login-container {
    width: 100%;
    max-width: 1000px;
    height: 600px;
    display: flex;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 20px;
}

/* Left Side - Form (Swapped positions) */
.login-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background-color: white;
    position: relative;
    z-index: 1;
}

.login-box {
    width: 100%;
    max-width: 360px;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    height: 50px;
    width: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--input-bg);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--text-color);
    background-color: #fff;
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-primary {
    background-color: #ff4757;
    /* Redish color like reference */
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-primary:hover {
    background-color: #ff6b81;
    transform: translateY(-1px);
}

.alert {
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.login-footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 100%;
}

.login-footer a {
    color: var(--text-muted);
    text-decoration: underline;
}

/* Right Side - Branding (Swapped positions) */
.login-brand-side {
    flex: 1.2;
    background: var(--brand-gradient);
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    overflow: hidden;
}

.login-brand-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/login-bg.jpg') no-repeat center center/cover;
    opacity: 0.2;
    mix-blend-mode: overlay;
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.brand-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.brand-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.brand-separator {
    height: 2px;
    width: 60px;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.brand-content p {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 2rem;
}




/* Responsive */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .login-brand-side {
        display: none;
    }

    .login-form-side {
        padding: 2rem;
    }
}