/*
Theme Name: Split Login Theme
Description: A simple 50/50 split layout theme with dark/light mode toggle and custom logo.
Author: Gemini
Version: 1.2
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Layout Container */
.split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side Base */
.split-left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: background-color 0.3s;
}

/* Login Wrapper Base */
.login-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 8px;
    transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.login-wrapper h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-wrapper form {
    display: flex;
    flex-direction: column;
}

.login-wrapper label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.login-wrapper input[type="text"],
.login-wrapper input[type="password"] {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.login-wrapper input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 600;
}

.login-wrapper input[type="submit"]:hover {
    background-color: #005177;
}

.login-wrapper .login-remember {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logged-in-msg {
    text-align: center;
}

.logged-in-msg a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

/* -----------------------------
   COLOR SCHEMES
----------------------------- */

/* Light Theme */
body.theme-light { color: #333; }
body.theme-light .split-left { background-color: #f4f6f8; }
body.theme-light .login-wrapper {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #222222; /* Contrasting dark border */
}
body.theme-light .login-wrapper h2 { color: #111; }
body.theme-light .login-wrapper input[type="text"],
body.theme-light .login-wrapper input[type="password"] {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
}

/* Dark Theme */
body.theme-dark { color: #e0e0e0; }
body.theme-dark .split-left { background-color: #121212; }
body.theme-dark .login-wrapper {
    background-color: #1e1e1e; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 2px solid #ffffff; /* Contrasting light border */
}
body.theme-dark .login-wrapper h2 { color: #ffffff; }
body.theme-dark .login-wrapper input[type="text"],
body.theme-dark .login-wrapper input[type="password"] {
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: #ffffff;
}

/* -----------------------------
   RIGHT SIDE & RESPONSIVE
----------------------------- */
.split-right {
    width: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #333;
    
    /* Center the logo vertically and horizontally */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Ensure the logo fits and looks nice */
.split-right-logo {
    text-align: center;
}

.split-right-logo img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); /* Adds a slight shadow so it pops off the background */
}

@media screen and (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }
    .split-left, 
    .split-right {
        width: 100%;
    }
    .split-right {
        min-height: 400px; 
    }
}