/* --- GLOBAL STYLES --- */
:root {
    --primary-color: #0d47a1; /* Deep Blue */
    --primary-hover: #0a367e;
    --secondary-color: #1976d2; /* Lighter Blue */
    --background-color: #f4f7f6;
    --form-background: #ffffff;
    --text-color: #333;
    --light-text-color: #f0f0f0;
    --border-color: #ced4da;
    --shadow-color: rgba(0, 0, 0, 0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
/* --- MAIN LAYOUT CONTAINER --- */
.main-container {
    width: 100%;
    max-width: 900px;
    min-height: 550px;
    display: flex;
    background-color: var(--form-background);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
}
/* --- BRANDING SIDE (LEFT) --- */
.branding-side {
    width: 45%;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.branding-logo { max-width: 120px; height: auto; margin-bottom: 25px; }
.branding-side .logo { font-size: 2.5rem; margin-bottom: 20px; font-weight: 700; }
.branding-side .logo span { font-weight: 300; }
.branding-side h1 { font-size: 1.8rem; font-weight: 500; margin-bottom: 15px; }
.branding-side p { font-size: 0.95rem; font-weight: 300; line-height: 1.6; max-width: 300px; }
/* --- FORM SIDE (RIGHT) --- */
.form-side {
    width: 55%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.form-side h2 { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); margin-bottom: 10px; text-align: left; }
.form-side p { color: #777; font-size: 0.9rem; margin-bottom: 30px; text-align: left; }
.input-group { position: relative; margin-bottom: 25px; }

/* Specific style for left-aligned input icons */
.input-group .input-icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    transition: color 0.2s;
}

.input-field {
    width: 100%;
    padding: 14px 15px 14px 45px; /* Default left padding for icons */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15);
}
/* .input-field:focus + i will now only apply to the immediate next sibling,
   which is the left icon in our new HTML structure. */
.input-field:focus + .input-icon-left {
    color: var(--primary-color);
}

/* NEW: Style for the password visibility toggle icon */
.password-toggle-icon {
    position: absolute;
    right: 15px; /* Position on the right */
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer; /* Make it look clickable */
    z-index: 2; /* Ensure it's above the input field */
}
/* IMPORTANT: Adjust password input padding to prevent text from overlapping the right icon */
.input-group input#password {
    padding-right: 45px; /* Add space on the right for the eye icon */
}


.options-group { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.remember-me-toggle { display: flex; align-items: center; font-size: 0.9rem; color: #555; }
.remember-me-toggle span { margin-right: 10px; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before {
    transform: translateX(20px);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}
.footer-text { margin-top: 40px; font-size: 0.85rem; color: #999; text-align: center; }
/* --- RESPONSIVE DESIGN --- */
@media (max-width: 800px) {
    .main-container { flex-direction: column; max-width: 450px; min-height: auto; margin: 20px; }
    .branding-side, .form-side { width: 100%; }
    .branding-side { padding: 40px 20px; min-height: 200px; }
    .form-side { padding: 40px; }
}

/* --- ALL DASHBOARD STYLES THAT WERE HERE ARE NOW REMOVED --- */
/* --- THEY BELONG IN dashboard.css ONLY --- */