body.login {
    background-color: #282828;
    min-height: 100vh;
    margin: 0;
    font-family: "Montserrat", sans-serif;
}

/* Flex wrapper injected via login_header/login_footer hook */
body.login .apranga-login-inner {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    box-sizing: border-box;
}

/* Centered card container that mimics Figma frame */
body.login #login {
    position: relative;
    width: 1120px;
    max-width: 100%;
    padding: 35px;
    margin: 0;
    display: flex;
    border-radius: 14px;
    background-color: #F9F9F9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.apranga-login-left {
    min-height: 620px;
    border-radius: 15px;
    flex: 0 0 520px;
    background-image: url('../img/login-img.png'); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.apranga-login-right {
    position: relative;
    flex: 1 1 auto;
    padding: 40px 65px 70px 100px;
    box-sizing: border-box;
}

.apranga-login-right > h1 {
    display: none;
}

.apranga-login-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
}

.apranga-login-langs {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.apranga-login-lang-dropdown {
    position: relative;
}

.apranga-login-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    padding: 0;
    color: #282828;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}

.apranga-login-lang-chevron {
    width: 8px;
    height: 5px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.apranga-login-lang-toggle.is-open .apranga-login-lang-chevron {
    transform: rotate(180deg);
}

.apranga-login-lang-menu {
    position: absolute;
    right: 0;
    top: 100%;
    padding-top: 8px;
    min-width: 56px;
    z-index: 20;
    display: none;
}

.apranga-login-lang-menu.is-open {
    display: block;
}

.apranga-login-lang-menu-inner {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.apranga-login-lang-option {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #282828;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
}

.apranga-login-lang-option:hover {
    background-color: #CEC1EC;
}

.login h1 {
    margin: 0;
    padding: 0;
}

/* Logo area in top-right, using background image so markup stays default */
.login h1 a {
    background: transparent url('../img/new-logo.svg') center no-repeat;
    background-size: contain;
    height: 40px;
    width: 260px;
    margin: 0;
}

.login .notice {
    margin: 0 0 25px;
}  

.login .notice-error{
    background-color: #EF3E46;
    border-color: #EF3E46; 
}

.login .notice-info {
    background-color: #CEC1EC; 
    border-color: #CEC1EC;
    color: black;
} 

/* Place the core form on the right side of the card */
.login #loginform,
.login #lostpasswordform,
.login #registerform,
.login #resetpassform {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    float: none;
}

.login form {
    margin: 0;
    padding: 0;
}

/* Password reset: field, hint and actions stack under the notice */
.login #resetpassform .user-pass1-wrap,
.login #resetpassform .wp-pwd {
    width: 100%;
    max-width: 100%;
}

.login #resetpassform .wp-pwd {
    position: relative;
}

.login #resetpassform .input,
.login #resetpassform input[type="password"],
.login #resetpassform input[type="text"] {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.login #resetpassform .password-input {
    padding-right: 48px;
}

.login #resetpassform .button.wp-hide-pw {
    position: absolute;
    top:0;
    right: 4px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    margin: 0;
    padding: 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.login #resetpassform #pass-strength-result {
    width: 100%;
    margin: 8px 0 12px;
    box-sizing: border-box;
    border-radius: 5px;
}

.login #resetpassform .description,
.login #resetpassform .indicator-hint {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 22px;
    color: #282828;
}

.login #resetpassform .wp-generate-pw {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 45px;
    margin: 0 0 8px;
    padding: 0 16px;
    border-radius: 50px;
    border: 1px solid #8C8C8C;
    background: #ffffff;
    color: #282828;
    font-size: 16px;
    font-weight: 300;
    box-shadow: none;
    text-shadow: none;
}

.login #resetpassform .wp-generate-pw:hover,
.login #resetpassform .wp-generate-pw:focus {
    background: #F3F3F3;
    border-color: #8C8C8C;
    color: #282828;
    box-shadow: none;
}

.login #resetpassform .reset-pass-submit {
    margin: 0;
    padding: 0;
    overflow: visible;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    border: 1px solid #E7E9EC;
    border-radius: 5px;
    height: 45px;
    padding: 0 14px;
    font-size: 16px;
    line-height: 45px;
    background: #ffffff;
}

.login label {
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
    color: #000000;
}

.login form p {
    margin-bottom: 16px;
}

.login form .forgetmenot {
    margin: 10px 0 15px !important;
}

.login form .forgetmenot label {
    font-size: 16px;
    color: #282828;
}

.login #nav,
.login #backtoblog {
    margin: 35px 0 0;
    text-align: center;
}

.login #nav {
    font-size: 16px;
    font-weight: 600;
}

.login .input {
    border: 1px solid #e7e9ec;
}

.login .input:focus, .login .button.wp-hide-pw:focus {
    border-color: #CEC1EC;
    box-shadow: 0 0 0 1px #CEC1EC;
}

/* Microsoft sign-in button – greyscale until hover */
.wpo365-mssignin-spacearound {
    filter: grayscale(100%);
    transition: filter 0.2s ease;
}

.wpo365-mssignin-spacearound:hover,
.wpo365-mssignin-spacearound:focus,
.wpo365-mssignin-spacearound:active {
    filter: grayscale(0%);
}

/* Override WPML plugin inline styles for login language switcher (in-card only) */
.ds-wpml-login-switcher,
#login .language-switcher {
    display: flex !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
}

.ds-wpml-login-switcher .apranga-login-lang-menu-inner,
#login .language-switcher .apranga-login-lang-menu-inner {
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.ds-wpml-login-switcher .apranga-login-lang-option,
.ds-wpml-login-switcher .ds-wpml-lang.apranga-login-lang-option,
#login .language-switcher .apranga-login-lang-option,
#login .language-switcher .ds-wpml-lang.apranga-login-lang-option {
    display: block !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #282828 !important;
    text-decoration: none !important;
    text-align: center !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.ds-wpml-login-switcher .apranga-login-lang-option:hover,
.ds-wpml-login-switcher .ds-wpml-lang.apranga-login-lang-option:hover,
#login .language-switcher .apranga-login-lang-option:hover,
#login .language-switcher .ds-wpml-lang.apranga-login-lang-option:hover {
    background-color: #CEC1EC !important;
}

.login #wp-submit {
    display: block;
    margin: 24px 0 0;
    height: 45px;
    padding: 0 16px;
    background-color: #CEC1EC;
    border-color: #CEC1EC;
    float: none;
    width: 100%;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.2px;
    color: #282828;
}

.login #wp-submit:hover {
    filter: brightness(0.97);
}

.login #wp-submit:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.login .dashicons {
    color: #CEC1EC;
}

.login #backtoblog a, .login #nav a {
    color: #282828;
    font-weight: 500;
    text-decoration: none;
}

.login #backtoblog a:hover,
.login #nav a:hover {
    text-decoration: underline;
    color: #CEC1EC;
}
.login .message {
    text-align: center;
    border-left: none;
    border-radius: 12px;
}

.login .privacy-policy-page-link {
    display: none;
}

#backtoblog {
    display: none;
}

/* Hide WPML switcher when it appears outside #login; show the in-card copy only */
body.login .language-switcher {
    display: none;
}

body.login #login .language-switcher {
    display: flex !important;
}

.wpo365-mssignin-wrapper {
    padding: 0!important;
    margin: 15px 0 25px;
}

.wpo365-mssignin-wrapper:hover {
    transform: none!important;
}

/* Microsoft SSO style – generic secondary button */
.login .button-secondary,
.login .button.wp-element-button {
    width: 100%;
    height: 45px;
    border-radius: 5px;
    border: 1px solid #8C8C8C;
    background-color: #FFFFFF;
    color: #282828;
    font-size: 16px;
    font-weight: 400;
    margin: 12px 0 8px;
}

.login .button-secondary:hover,
.login .button.wp-element-button:hover {
    background-color: #F3F3F3;
}

/* Responsive: stack content on medium/small screens */
@media screen and (max-width: 900px) {
    body.login .apranga-login-inner {
        align-items: flex-start;
        padding: 24px 16px;
    }

    body.login #login {
        flex-direction: column;
        padding: 0;
        overflow: visible;
    }

    .apranga-login-left {
        min-height: 300px;
        order: 2;
        flex: 0 0 300px;
        width: calc(100% - 30px);
        border-radius: 12px;
        margin: 0 15px 15px;
    }

    .apranga-login-right {
        order: 1;
        padding: 40px 32px 40px;
        width: 100%;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 480px) {
    body.login .apranga-login-inner {
        padding: 16px 12px;
    }

    .apranga-login-right {
        padding: 32px 24px 32px;
    }

    .apranga-login-left {
        min-height: 220px;
        flex: 0 0 220px;
        width: calc(100% - 30px);
    }
}