/* Modern Clean Login Page Styles */
body.login {
    background-color: #F8F9FA;
    font-family: 'Inter', sans-serif !important;
    display: flex;
    /* Reset display */
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    /* Prevent double scrolls */
    margin: 0;
    padding: 0;
}

/* Split Container */
.copyme-split-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Column (Branding) */
.copyme-split-left {
    width: 50%;
    position: relative;
    background-color: #243E8B;
    /* Fallback */
    overflow: hidden;
}

.copyme-split-branding {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    color: #fff;
}

.copyme-branding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.copyme-branding-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.copyme-split-branding h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #fff;
}

.copyme-split-branding p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 480px;
    color: #fff;
    font-weight: 400;
}

/* Right Column (Form) */
.copyme-split-right {
    width: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px;
    overflow-y: auto;
}

/* Adjust Default WP Structure */
body.login div#login {
    width: 100%;
    max-width: 420px;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 10;
}

/* Logo in Right Column */
body.login div#login h1 a {
    width: 180px;
    height: 60px;
    background-size: contain !important;
    background-position: center;
    margin: 0 auto 30px;
}

/* Form Styles */
body.login form {
    margin-top: 0;
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* Inputs */
body.login form .input,
body.login form input[type="text"],
body.login form input[type="password"] {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: none;
    font-size: 16px;
    color: #333;
    padding: 14px 16px;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
}

body.login form .input:focus,
body.login form input[type="text"]:focus,
body.login form input[type="password"]:focus {
    border-color: #243E8B;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36, 62, 139, 0.1);
}

/* Labels */
body.login label {
    font-size: 14px;
    color: #111;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Button */
body.login .wp-core-ui .button-primary {
    background-color: #243E8B;
    border-color: #243E8B;
    box-shadow: none;
    color: #fff;
    border-radius: 0;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    height: auto;
    text-shadow: none;
    transition: all 0.2s ease;
    margin-top: 10px;
    float: none !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Poppins', sans-serif;
}

body.login .wp-core-ui .button-primary:hover {
    background-color: #1a2d69;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(36, 62, 139, 0.2);
    border: none;
}

/* Footer Section */
.copyme-split-footer {
    margin-top: 40px;
    text-align: center;
    color: #888;
    font-size: 13px;
    width: 100%;
}

/* Bottom Links */
body.login #nav,
body.login #backtoblog {
    padding: 0;
    margin: 20px 0 0;
    text-align: center;
}

body.login #nav a,
body.login #backtoblog a {
    color: #666 !important;
    font-size: 14px;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: #243E8B !important;
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .copyme-split-container {
        flex-direction: column;
    }

    .copyme-split-left {
        width: 100%;
        height: 250px;
        /* Short header on mobile */
        min-height: 250px;
        flex: 0 0 auto;
    }

    .copyme-split-branding {
        padding: 30px;
        align-items: center;
        text-align: center;
    }

    .copyme-split-branding h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .copyme-split-branding p {
        font-size: 14px;
        display: none;
        /* Hide desc on mobile often helps save space */
    }

    .copyme-split-right {
        width: 100%;
        flex: 1 1 auto;
        padding: 30px 20px;
    }

    body.login {
        height: auto;
        overflow-y: auto;
        background: #fff;
    }

    body.login div#login {
        padding-top: 0;
        max-width: 100%;
    }
}