/* --- 1. Global Variables & Reset --- */
:root {
    --primary-blue: #04027A;
    --primary-green: #099B4C;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f4f7f6;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-gray);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- 2. Reusable Component: Cards/Containers --- */
/* We will use this .card-box for Login, Add Product, and Add Lead forms */
.card-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- 3. Reusable Component: Form Elements --- */
/* These styles will apply to EVERY input in your CRM */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-green); /* Highlights green on click */
}

/* --- 4. Reusable Component: Buttons --- */
.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    border: none;
    border-radius: 50px; /* Rounded pill shape like your image */
    color: var(--white);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 155, 76, 0.3);
}

/* --- 5. Specific Layout: Login Split Screen --- */
.login-wrapper {
    display: flex;
    width: 900px;
    max-width: 90%;
    height: 600px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden; /* Keeps the image inside the rounded corners */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.login-left {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right {
    flex: 1;
    background: linear-gradient(135deg, rgba(4,2,122,0.9), rgba(9,155,76,0.9)), url('../img/building-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 30px;
}

.brand-title {
    color: var(--primary-blue);
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 800;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

/* --- Global Reset & Centering --- */
body {
    background-color: var(--light-gray);
    min-height: 100vh; /* Ensures full height */
    width: 100%;
    display: flex;
    justify-content: center; /* Horizontally Center */
    align-items: center;     /* Vertically Center */
    margin: 0;
}

/* --- Login Container --- */
.login-wrapper {
    display: flex;
    width: 850px; /* Slightly reduced width for a tighter, more centered look */
    max-width: 90%;
    height: 550px; /* Fixed height helps visual centering */
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* Softer, deeper shadow */
    margin: auto; /* Extra safety for centering */
}

/* ... Keep previous .login-left, .login-right, .form styles ... */

/* --- Developer Footer --- */
.login-footer {
    text-align: center;
    margin-top: auto; /* Pushes this to the very bottom of the container */
    padding-top: 20px;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.dev-credit {
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}