/* Admin Weeb - Login Styles */

body.login {
    display: flex;
    height: 100vh;
    width: 100vw;
    font-family: 'Roboto', sans-serif;
    background: #f1f1f1;
}

/* Left separate image container (injected via JS or PHP hook) or background */
/* Since we can't easily change the DOM structure of wp-login.php without major hacks, we'll use absolute positioning and flexbox on the body */

/* The Login Form Container */
#login {
    width: 50%;
    max-width: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    order: 2;
    /* Right side */
    position: relative;
    z-index: 10;
}

/* The Image Container (injected via hook in footer/header) */
.aw-login-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    order: 1;
    /* Left side */
}

/* Responsive: Stack on mobile */
@media screen and (max-width: 768px) {
    body.login {
        flex-direction: column;
    }

    #login {
        width: 100%;
        order: 2;
        padding: 20px;
    }

    .aw-login-image {
        position: relative;
        width: 100%;
        height: 200px;
        order: 1;
    }
}

/* Form Styles */
.login form {
    box-shadow: none;
    border: none;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    background: transparent;
}

/* Input Fields */
.login form .input,
.login input[type=text] {
    font-size: 16px;
    line-height: normal;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: none;
    background: #f9f9f9;
}

/* Button */
.wp-core-ui .button-primary {
    background: #333;
    /* Fallback or variable */
    border-color: #333;
    box-shadow: none;
    text-shadow: none;
    width: 100%;
    margin-top: 15px;
    padding: 0 10px;
    height: 40px;
    font-size: 16px;
    border-radius: 4px;
}

.login h1 {
    margin-bottom: 20px;
}

.login h1 a {
    background-size: contain;
    width: 150px;
    height: 80px;
    margin: 0 auto;
}

.login #backtoblog,
.login #nav {
    text-align: center;
    padding: 0;
}