/* Scope to the Core's Google block; retain Nextend's official logo/button styles. */
.pw-google-auth {
    width: 100%;
    min-width: 0;
    margin: 1rem 0 0;
    text-align: center;
}
.pw-google-auth .nsl-container,
.pw-google-auth .nsl-container .nsl-container-buttons {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.pw-google-auth .nsl-container .nsl-container-buttons a[data-plugin="nsl"] {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}
.pw-google-auth .pw-google-auth__divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.1rem 0 0;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #555;
}
.pw-google-auth__divider::before,
.pw-google-auth__divider::after {
    content: "";
    flex: 1 1 0;
    height: 1px;
    background: #deded8;
}
.pw-google-auth__divider span { flex: 0 1 auto; }
.hp-form--user-login .hp-form__header,
.hp-form--user-register .hp-form__header { margin-bottom: 1.25rem; }
@media (max-width: 400px) {
    .pw-google-auth .pw-google-auth__divider { gap: .5rem; font-size: .8125rem; }
}

/* Google account completion only: match the site's approved action colors. */
body #registerform:has(.pw-google-age) #wp-submit {
    background: var(--pw-brand-red, #C62828) !important;
    border-color: var(--pw-brand-red, #C62828) !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
    box-shadow: none;
}
body #registerform:has(.pw-google-age) #wp-submit:hover,
body #registerform:has(.pw-google-age) #wp-submit:active {
    background: var(--pw-brand-red-hover, #A32222) !important;
    border-color: var(--pw-brand-red-hover, #A32222) !important;
    color: #FFFFFF !important;
}
body #registerform:has(.pw-google-age) #wp-submit:focus-visible {
    outline: 3px solid var(--pw-brand-green, #244C38);
    outline-offset: 3px;
}

/* Native HivePress auth cards: visual refresh, no replacement forms or handlers. */
body :is(#user_login_modal, #user_register_modal) {
    width: 560px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    padding: 40px 44px 32px;
    margin: 24px auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    border: 1px solid #ebe5dd;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(28, 28, 28, .18);
    color: #1c1c1c;
}
body :is(#user_login_modal, #user_register_modal) .hp-modal__title {
    margin: 0 20px 24px !important;
    font-size: 30px !important;
    line-height: 1.25 !important;
    text-align: center;
    letter-spacing: -.02em;
}
body :is(#user_login_modal, #user_register_modal) .fancybox-close-small {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    padding: 10px;
    color: #444;
    border-radius: 50%;
}
body :is(#user_login_modal, #user_register_modal) .hp-form__description {
    margin: 0 0 22px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: #605b54;
}
body :is(#user_login_modal, #user_register_modal) .pw-google-auth { margin-top: 0; }
body :is(#user_login_modal, #user_register_modal) .nsl-container .nsl-container-buttons { padding: 0; }
body :is(#user_login_modal, #user_register_modal) .nsl-container-buttons > a { margin: 0; }
body :is(#user_login_modal, #user_register_modal) .nsl-button.nsl-button-google {
    min-height: 54px;
    border: 1px solid #cfcac4;
    border-radius: 999px;
    background: #fff;
    box-shadow: none;
    align-items: center;
    color: #1c1c1c;
}
body :is(#user_login_modal, #user_register_modal) .nsl-button-google:hover { background: #faf8f5; }
body :is(#user_login_modal, #user_register_modal) .nsl-button-label-container {
    font-family: var(--pw-font-body, sans-serif);
    font-size: 16px;
}
body :is(#user_login_modal, #user_register_modal) .pw-google-auth__divider {
    margin-top: 22px;
    font-size: 13px;
    color: #706b64;
}
body :is(#user_login_modal, #user_register_modal) .hp-form__header { margin-bottom: 22px; }
body :is(#user_login_modal, #user_register_modal) .hp-form__field:not(:last-child) { margin-bottom: 16px; }
body :is(#user_login_modal, #user_register_modal) .hp-form__label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #3a3a3a;
}
body :is(#user_login_modal, #user_register_modal) input:is([type=text], [type=email], [type=password]) {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    box-sizing: border-box;
    border: 1px solid #d8d2c9;
    border-radius: 14px;
    background: #fff;
    color: #1c1c1c;
    box-shadow: none;
    font-size: 16px;
    line-height: 1.5;
}
body :is(#user_login_modal, #user_register_modal) .hp-form__fields { margin-bottom: 22px; }
body :is(#user_login_modal, #user_register_modal) .hp-form__button {
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border: 1px solid var(--pw-brand-red, #C62828);
    border-radius: 999px;
    background: var(--pw-brand-red, #C62828);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: none;
}
body :is(#user_login_modal, #user_register_modal) .hp-form__button:hover {
    background: var(--pw-brand-red-hover, #A32222);
    border-color: var(--pw-brand-red-hover, #A32222);
    color: #fff;
}
body :is(#user_login_modal, #user_register_modal) .hp-form__footer,
body :is(#user_login_modal, #user_register_modal) .hp-form__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}
body :is(#user_login_modal, #user_register_modal) .hp-form__action {
    margin: 0 !important;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}
body :is(#user_login_modal, #user_register_modal) a:not([data-plugin=nsl]) { text-underline-offset: 3px; }
body :is(#user_login_modal, #user_register_modal) :is(a, button, input):focus-visible {
    outline: 3px solid var(--pw-brand-green, #244C38);
    outline-offset: 3px;
}
body :is(#user_login_modal, #user_register_modal) input[type=checkbox] { accent-color: var(--pw-brand-red, #C62828); }
body :is(#user_login_modal, #user_register_modal) .hp-field--checkbox { line-height: 1.6; }
body :is(#user_login_modal, #user_register_modal) .hp-form__messages { font-size: 14px; border-radius: 10px; }
@media (max-width: 480px) {
    body :is(#user_login_modal, #user_register_modal) {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        margin: 12px auto;
        padding: 34px 22px 26px;
        border-radius: 20px;
    }
    body :is(#user_login_modal, #user_register_modal) .hp-modal__title { font-size: 26px !important; }
}
