/**
 * Branded WordPress authentication surface.
 *
 * @since 1.7.48
 */

html {
    min-height: 100%;
    background: #071a2b;
}

body.login {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 54px 18px;
    overflow-x: hidden;
    color: #172637;
    background:
        radial-gradient(circle at 15% 12%, rgba(23, 107, 255, 0.24), transparent 30rem),
        radial-gradient(circle at 86% 88%, rgba(15, 139, 141, 0.18), transparent 32rem),
        linear-gradient(145deg, #061725 0%, #0b2438 52%, #0d3045 100%);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
}

body.login::before,
body.login::after {
    content: "";
    position: fixed;
    pointer-events: none;
}

body.login::before {
    inset: 0;
    opacity: 0.13;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, #000, transparent 38%, transparent 62%, #000);
}

body.login::after {
    top: 42px;
    left: 50%;
    width: min(78vw, 900px);
    height: 1px;
    translate: -50% 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

#login {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    margin: 0;
    padding: 0;
}

#login h1 {
    margin: 0;
}

#login h1 a {
    width: min(100%, 230px);
    height: 80px;
    margin: 0 auto 22px;
    padding: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.bne-login-intro {
    margin: 0 0 20px;
    text-align: center;
}

.bne-login-intro p {
    margin: 0 0 8px;
    color: #72d8d2;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.25;
    text-transform: uppercase;
}

.bne-login-intro h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 2.45rem);
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.bne-login-intro > span {
    display: block;
    max-width: 390px;
    margin: 10px auto 0;
    color: #b7c9d5;
    font-size: 0.88rem;
    line-height: 1.55;
}

.login form,
.login .message,
.login .success,
.login #login_error {
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.72);
}

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

.login .message,
.login .success,
.login #login_error {
    margin: 0 0 14px;
    padding: 15px 17px;
    color: #314454;
    font-size: 0.82rem;
    line-height: 1.5;
}

.login .message,
.login .success {
    border-left: 4px solid #0f8b8d;
}

.login #login_error {
    border-left: 4px solid #c53b42;
}

.login #login_error a,
.login .message a {
    color: #0d51cc;
    font-weight: 700;
}

#login form > p,
#login form .user-pass-wrap {
    margin: 0 0 18px;
}

.login form label {
    display: block;
    color: #263848;
    font-size: 0.82rem;
    font-weight: 700;
}

.login form .input,
.login form input[type="text"],
.login form input[type="email"],
.login form input[type="password"] {
    min-height: 52px;
    margin: 7px 0 0;
    padding: 12px 13px;
    border: 1px solid #cbd7df;
    border-radius: 11px;
    outline: none;
    color: #132132;
    background: #fbfcfd;
    box-shadow: none;
    font-size: 16px;
    line-height: 1.25;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login form .input:hover,
.login form input[type="text"]:hover,
.login form input[type="email"]:hover,
.login form input[type="password"]:hover {
    border-color: #a9bac6;
    background: #fff;
}

.login form .input:focus,
.login form input[type="text"]:focus,
.login form input[type="email"]:focus,
.login form input[type="password"]:focus {
    border-color: #176bff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23, 107, 255, 0.13);
}

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

.login .button.wp-hide-pw {
    top: 7px;
    right: 4px;
    width: 46px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 0;
    color: #496172;
    background: transparent;
    box-shadow: none;
}

.login .button.wp-hide-pw:hover {
    color: #0d51cc;
}

.login form .forgetmenot {
    float: none;
    margin: 0 0 16px;
}

.login form .forgetmenot label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    color: #526675;
    font-weight: 600;
}

.login form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid #9fb0bd;
    border-radius: 5px;
}

#login form .submit {
    float: none;
    clear: both;
    margin: 0;
    padding: 0;
}

#login .button-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 12px 20px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #176bff 0%, #0d51cc 100%);
    box-shadow: 0 14px 28px -18px rgba(23, 107, 255, 0.9);
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.2;
    text-shadow: none;
    transition: translate 0.15s ease, box-shadow 0.15s ease;
}

#login .button-primary:hover,
#login .button-primary:focus {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #0d5ce5 0%, #0a44ae 100%);
    box-shadow: 0 18px 34px -18px rgba(23, 107, 255, 0.95);
    translate: 0 -1px;
}

#login .button-primary:focus-visible,
.login .button.wp-hide-pw:focus-visible,
.login #nav a:focus-visible,
.login #backtoblog a:focus-visible,
.login .privacy-policy-page-link a:focus-visible {
    outline: 3px solid rgba(114, 216, 210, 0.62);
    outline-offset: 3px;
}

.login #nav,
.login #backtoblog,
.login .privacy-policy-page-link {
    margin: 16px 0 0;
    padding: 0;
    color: #b7c9d5;
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: center;
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a {
    display: inline-block;
    min-height: 36px;
    padding: 8px 3px;
    color: #d8e5ed;
    font-weight: 650;
    text-decoration: none;
}

.login #nav a:hover,
.login #backtoblog a:hover,
.login .privacy-policy-page-link a:hover {
    color: #fff;
    text-decoration: underline;
}

.login .privacy-policy-page-link {
    margin-top: 2px;
}

.login .language-switcher {
    margin-top: 20px;
}

.login .language-switcher form {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
}

.login-action-lostpassword #lostpasswordform > p:first-child,
.login-action-register #registerform > p:first-child {
    margin-top: 0;
}

.login-action-rp #resetpassform .description,
.login-action-resetpass #resetpassform .description {
    color: #667987;
    font-size: 0.76rem;
    line-height: 1.5;
}

.login .indicator-hint {
    padding-top: 7px;
}

@media (max-width: 480px) {
    body.login {
        align-items: flex-start;
        padding: 28px 16px 38px;
    }

    body.login::after {
        top: 20px;
    }

    #login {
        width: 100%;
    }

    #login h1 a {
        width: 190px;
        height: 64px;
        margin-bottom: 16px;
    }

    .bne-login-intro {
        margin-bottom: 16px;
    }

    .bne-login-intro h2 {
        font-size: 2rem;
    }

    .bne-login-intro > span {
        font-size: 0.82rem;
    }

    .login form {
        padding: 22px 18px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.login *,
    body.login *::before,
    body.login *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
