/*
 * Stoke Branded login screen.
 * 50/50 split: dark login panel on the left, full-height rotating cover image on the right.
 */

@font-face {
    font-family: "Saans";
    src: url("../fonts/SaansRegular.woff2") format("woff2"),
    url("../fonts/SaansRegular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Saans";
    src: url("../fonts/SaansMedium.woff2") format("woff2"),
    url("../fonts/SaansMedium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: "Saans";
    src: url("../fonts/SaansBold.woff2") format("woff2"),
    url("../fonts/SaansBold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
}

/* ---------------------------------------------------------------------------
 * Page shell — dark, edge to edge
 * ------------------------------------------------------------------------- */
body.login {
    background: #050505;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.dual,
.dual .container-fluid {
    height: 100vh;
}

.dual-wrapper {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 100vh;
}

.dual-wrapper .left-dl,
.dual-wrapper .right-dl {
    max-width: 50%;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
 * Left — dark login panel
 * ------------------------------------------------------------------------- */
.dual-wrapper .left-dl {
    background: #050505;
    display: flex;
    flex-direction: column;
    padding: 43px 0 30px;
    position: relative;
}

.dual-wrapper .left-dl .logo {
    flex: 0 0 auto;
    width: 100%;
}

.dual-wrapper .left-dl .logo a {
    box-shadow: none;
}

.dual-wrapper .left-dl .logo img {
    display: block;
    max-width: 230px;
    width: 100%;
    height: 38px;
    object-fit: contain;
    object-position: left center;
    padding-left: 63px;
}

/* Login block + forgot password, vertically centred in the space between logo and tagline */
.dual-wrapper .left-dl .login-center {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dual-wrapper .left-dl .custom-login-form {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.dual-wrapper .left-dl .custom-login-form form {
    background: transparent;
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 0;
}

/* WordPress login notices/errors, relocated into the panel by JS */
.dual-wrapper .left-dl .custom-login-form #login_error,
.dual-wrapper .left-dl .custom-login-form .message,
.dual-wrapper .left-dl .custom-login-form .notice {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid #ffffff;
    border-radius: 4px;
    box-shadow: none;
    color: #ffffff;
    font-family: "Saans", sans-serif;
    font-size: 13px;
    line-height: 18px;
    padding: 12px 14px;
    margin: 0 0 20px;
}

.dual-wrapper .left-dl .custom-login-form #login_error {
    border-left-color: #f65134;
}

.dual-wrapper .left-dl .custom-login-form #login_error a,
.dual-wrapper .left-dl .custom-login-form .message a,
.dual-wrapper .left-dl .custom-login-form .notice a {
    color: #ffffff;
    text-decoration: underline;
}

/* Inputs — white underline on dark */
.dual-wrapper .left-dl .custom-login-form .user-pass-wrap,
.dual-wrapper .left-dl .custom-login-form .wp-pwd {
    width: 100%;
    position: relative;
}

.dual-wrapper .left-dl .custom-login-form input[type="text"],
.dual-wrapper .left-dl .custom-login-form input[type="password"],
.custom-login-form input#user_login,
.custom-login-form input#user_pass {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ffffff;
    border-radius: 0;
    padding: 16px 0;
    margin-bottom: 28px;
    color: #ffffff;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    font-family: "Saans", sans-serif;
    letter-spacing: 0.938px;
}

.custom-login-form input#user_login::placeholder,
.custom-login-form input#user_pass::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.custom-login-form input#user_login:focus,
.custom-login-form input#user_pass:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: #ffffff;
}

/* Hide WP labels and the remember-me row */
.dual-wrapper .left-dl .custom-login-form p label,
.dual-wrapper .left-dl .custom-login-form .user-pass-wrap label {
    display: none;
}

.dual-wrapper .left-dl .custom-login-form .forgetmenot {
    display: none;
}

/* Password show/hide control — keep the eye icon, force it white on the dark panel */
.dual-wrapper .left-dl .custom-login-form .user-pass-wrap .wp-pwd button {
    background: transparent;
    border: none;
    box-shadow: none;
}

.dual-wrapper .left-dl .custom-login-form .user-pass-wrap .wp-pwd button .dashicons-visibility:before,
.dual-wrapper .left-dl .custom-login-form .user-pass-wrap .wp-pwd button .dashicons-hidden:before {
    content: "" !important;
    position: absolute;
    background-image: url(../images/trailing-icon.svg);
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    right: 12px;
    top: 5px;
    filter: brightness(0) invert(1);
}

.login .button.wp-hide-pw:focus,
.login .button.wp-hide-pw:active {
    background: 0 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Submit — inverted (white button, dark text) */
.dual-wrapper .left-dl .custom-login-form .submit {
    position: relative;
}

.dual-wrapper .left-dl .custom-login-form .submit .button {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    color: #050505;
    border: 1px solid #ffffff;
    border-radius: 40px;
    padding: 15px;
    margin-bottom: 0;
    opacity: 1;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    font-family: "Saans", sans-serif;
    letter-spacing: 0.938px;
    transition: 0.3s ease-in-out;
}

.dual-wrapper .left-dl .custom-login-form .submit .button:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
    color: #050505;
}

/* Forgot password */
.dual-wrapper .left-dl .forgot-pass {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    padding-top: 24px;
    text-align: center;
}

.dual-wrapper .left-dl .forgot-pass a {
    text-decoration: none;
    font-size: 12px;
    line-height: 13px;
    font-weight: 400;
    color: #ffffff;
    font-family: "Saans", sans-serif;
    transition: 0.3s ease-in-out;
}

.dual-wrapper .left-dl .forgot-pass a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Tagline — pinned to the bottom (30px via the panel's bottom padding) */
.dual-wrapper .left-dl .tagline {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    text-align: center;
}

.dual-wrapper .left-dl .tagline p {
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
    color: #ffffff;
    text-align: center;
    font-family: "Saans", sans-serif;
    margin: 0;
}

.dual-wrapper .left-dl .tagline p a {
    color: #ffffff;
    text-decoration: none;
}

.dual-wrapper .left-dl .tagline p a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * Right — rotating cover image, full-bleed within its half
 * ------------------------------------------------------------------------- */
.dual-wrapper .right-dl {
    padding: 0;
}

.dual-wrapper .right-dl .login-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* ---------------------------------------------------------------------------
 * WordPress login chrome we hide / reset
 * ------------------------------------------------------------------------- */
#login {
    display: none;
}

#login h1,
#login h1 a {
    display: none !important;
    background: none !important;
    background-image: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.login #backtoblog a,
.login #nav a {
    display: none;
}

#language-switcher,
.language-switcher {
    display: none !important;
}

.second_screen_options {
    display: none;
}

/* Cloudflare Turnstile (if present) centred within the form */
.login [id^="cf-turnstile"],
.login .cf-turnstile {
    margin: 0 auto !important;
    text-align: center !important;
}

/* ---------------------------------------------------------------------------
 * Responsive — single column; image hidden, login full width
 * ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .dual-wrapper {
        flex-direction: column;
    }

    .dual-wrapper .left-dl {
        max-width: 100%;
        height: auto;
        min-height: 100vh;
    }

    .dual-wrapper .right-dl {
        display: none;
    }

    .dual-wrapper .left-dl .logo img {
        padding-left: 40px;
    }
}

@media (max-width: 600px) {
    .dual-wrapper .left-dl .custom-login-form,
    .dual-wrapper .left-dl .forgot-pass {
        max-width: calc(100% - 80px);
    }
}
