:root {
    --primary-blue: #007AFF;
    --text-dark: #111111;
    --text-label: #555555;
    --text-placeholder: #A1A1A1;
    --bg-light: #F9F9F9;
    --border-color: #E5E5E5;
    --white: #FFFFFF;
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden;
}

.split-screen-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Section */
.login-section {
    flex: 1;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    padding: 60px;
    position: relative;
    justify-content: center;
    max-width: 50%;
}

.logo-container {
    position: absolute;
    top: 60px;
    left: 60px;
    margin-bottom: 0;
}

.logo-small {
    height: 24px;
    /* Adjust as needed */
    width: auto;
    display: block;
}

.form-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

h1 {
    font-size: 27px;
    /* Reduced from 32px (-15%) */
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
}

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

label {
    display: block;
    font-size: 12px;
    /* Reduced from 14px (-15% approx) */
    font-weight: 500;
    color: var(--text-label);
    margin-bottom: 8px;
}

input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    /* Reduced from 16px (-15% approx) */
    color: var(--text-dark);
    background-color: var(--white);
    transition: border-color 0.2s;
    font-family: var(--font-family);
}

input::placeholder {
    color: var(--text-placeholder);
}

input:focus {
    outline: none;
    border-color: #333;
    /* Dark border instead of blue */
    box-shadow: 0 0 0 1px #333;
    /* Optional: adds a bit of thickness similar to default focus but dark */
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-placeholder);
    padding: 0;
    display: flex;
    align-items: center;
}

.forgot-password {
    display: inline-block;
    font-size: 12px;
    /* Reduced from 14px */
    color: #4B5563;
    text-decoration: none;
    margin-bottom: 32px;
    font-weight: 500;
}

.sign-in-btn {
    width: 100%;
    padding: 16px;
    background-color: #141414;
    /* User requested #141414 */
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    /* Reduced from 16px */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sign-in-btn:hover {
    background-color: #333333;
    /* Lighter dark for hover */
}

.footer-links {
    margin-top: 100px;
    text-align: center;
    font-size: 10px;
    /* Reduced from 12px */
}

.footer-links a {
    color: var(--primary-blue);
    text-decoration: underline;
    margin: 0 10px;
}

input {
    /* Force white background always */
    background-color: #FFFFFF !important;
    /* Remove default light blue focus ring in Chrome/Safari */
    outline: none !important;
    border-color: #B0B0B0 !important;
    /* Neutral grey border */
    box-shadow: none !important;
    /* Kill any shadows */
}

input:focus {
    background-color: #FFFFFF !important;
    border-color: #141414 !important;
    /* Dark focus border */
    box-shadow: 0 0 0 1px #141414 !important;
    outline: none !important;
}

/* Right Section */
.branding-section {
    flex: 1;
    background-color: #4A90E2;
    /* Final Image */
    background-image: url('assets/renoir-login-bg-final.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Responsive Fixes */
@media (max-width: 900px) {
    body {
        height: auto !important;
        /* Allow body to grow */
        min-height: 100vh;
        overflow-y: auto !important;
        /* Force scroll */
    }

    .split-screen-container {
        flex-direction: column;
        height: auto !important;
        overflow: visible;
    }

    /* 1. Image on Top */
    .branding-section {
        order: 1;
        min-height: 35vh;
        max-height: 40vh;
        flex: none;
        width: 100%;
    }

    /* 2. Login Section below */
    .login-section {
        order: 2;
        flex: none;
        width: 100%;
        max-width: 100%;
        padding: 40px 24px;
        height: auto;
        display: block;
        /* Simpler than flex for stacking */
    }

    /* 3. Logo flows naturally */
    .logo-container {
        position: static !important;
        /* KILL absolute positioning */
        margin-bottom: 24px;
        display: block;
        width: 100%;
        margin-top: 0;
        top: auto;
        left: auto;
    }

    /* 4. Form follows logo */
    .form-container {
        margin: 0;
        width: 100%;
        padding-bottom: 40px;
    }

    h1 {
        font-size: 24px;
        /* Slightly smaller on mobile */
        margin-top: 0;
    }
}