/*
 * Modern Login Styler CSS (v3 - Final)
 */

/* Main container to create the split-screen layout */
.clps-container {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Left Side: The Image Banner */
.clps-banner {
    width: 50%;
    height: 100%;
    background-color: #f0f0f0; /* Fallback color */
    background-size: cover;
    background-position: center;
}

/* Right Side: The Form Wrapper */
.clps-form-wrapper {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #ffffff; /* Default, will be overridden by user setting */
}

/*
 * --- Styling the Custom Title ---
 */
.clps-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px; /* A bit smaller than the default 28px */
    font-weight: 500;
    color: #2c3338;
    margin: 0 0 30px 0; /* Spacing below title */
    text-align: center;
}

/*
 * --- Styling the Login Box (#login) ---
 */
#login {
    position: relative;
    width: 400px !important;
    max-width: 100%;
    padding: 50px 40px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07) !important;
    border-radius: 8px !important;
}

/* HIDE the default WP logo header */
#login h1 {
    display: none !important;
}

/* Form Styling */
#login form {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Input fields */
#login form .input, #login input[type="text"], #login input[type="password"] {
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    box-shadow: none !important;
    font-size: 16px;
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 5px;
}
#login form .input:focus, #login input[type="text"]:focus, #login input[type="password"]:focus {
    border-color: #00c7c4; /* Match button color on focus */
    background-color: #fff;
}

/*
 * --- NEW Login Button Color ---
 */
.wp-core-ui .button-primary {
    background: #00c7c4 !important;
    border-color: #00c7c4 !important;
    width: 100%;
    padding: 12px !important;
    margin-top: 15px !important;
    height: auto !important;
    font-size: 16px !important;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px !important;
    transition: background-color 0.2s ease-in-out;
}

.wp-core-ui .button-primary:hover {
    background: #00a6a3 !important; /* A slightly darker shade for hover */
    border-color: #00a6a3 !important;
}

/* Bottom links ('Lost password?') */
#nav {
    margin: 20px 0 0 !important;
    padding: 0 !important;
    text-align: center;
}
#nav a {
    color: #555;
    transition: color 0.2s;
}
#nav a:hover {
    color: #00c7c4;
}

/*
 * --- HIDE the "Back to..." link ---
 */
#backtoblog {
    display: none !important;
}

/* Our custom footer text */
.clps-footer-text {
    position: absolute;
    bottom: 20px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* --- Responsive for Mobile --- */
@media (max-width: 850px) {
    .clps-banner { display: none; }
    .clps-form-wrapper { width: 100%; }
    .clps-title { margin-top: 20px; }
    #login {
        border: none !important;
        box-shadow: none !important;
    }
}

/*
 * Custom Font & Title Adjustments
 */

/* Adjust the title's position now that it's inside the login box */
#login .clps-title {
    margin: 0 0 25px 0 !important; /* Adjust bottom margin */
    padding: 0;
    text-align: center;
}

/* Style the "Username or Email Address" and "Password" labels */
#loginform label {
    font-family: 'Roboto', sans-serif;
    font-size: 13px; /* Smaller font size */
    font-weight: normal; /* Bold font weight */
    color: #444;
}

/* Style the user input fields to have a smaller font */
#loginform .input {
    font-family: 'Roboto', sans-serif;
    font-size: 13px; /* Smaller font for user typing */
}

/* Style the "Remember Me" label */
.forgetmenot label {
    font-family: 'Roboto', sans-serif;
    font-size: 13px; /* Match the other labels */
    font-weight: 400; /* Keep it normal weight */
}