/* WP Admin Styler - Login Page Styles */

html {
    padding: 0;
    background: #f0f0f1;
}

body.login {
    display: flex;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #fff;
}

/* Left side with background image */
.login-left-background {
    flex: 1 1 50%;
    background-image: url('../img/login_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Right side container for the form */
.login-right-background {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* For footer positioning */
    padding: 20px;
    box-sizing: border-box;
}

#login {
    width: 100%;
    max-width: 380px;
    margin: 0 !important;
    padding: 0 !important;
}

#loginform {
    margin: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #ddd;
    border-radius: 8px;
}

.login h1 {
    width: 100%;
    text-align: center;
}

.login h1 a {
    margin: 0 auto 25px;
    background-size: contain;
}

/* Footer credit and language switcher container */
.login-footer-credit {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    color: #555;
    font-size: 12px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Style the language switcher if it exists */
.login-footer-credit .language-switcher {
    margin-top: 10px;
}

#adminmenu div.wp-menu-image.svg{
    filter: brightness(0.5);
}
.login-right-background #wp-submit{
    background: #b12222;
    border-color: #b12222;
}

.login-right-background #wp-submit:hover{
    background: #961313;
    border-color: #961313;
}


/* Responsive adjustments for smaller screens */
@media (max-width: 800px) {
    body.login {
        flex-direction: column;
    }

    /* Hide the image background on small screens */
    .login-left-background {
        display: none;
    }

    /* Make the right side take full width */
    .login-right-background {
        flex: 1 1 100%;
        min-height: 100vh;
        padding: 8% 6%;
    }

    /* The footer is already positioned relative to the right container, so no change is needed */
}
