/* Branded password recovery pages for the login layout. */
.signup-recovery-page {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: #4b93ff url("pix/signup-background.png") center / cover fixed !important;
}

.signup-recovery-page::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background: rgb(176 198 226 / 58%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    content: "";
    pointer-events: none;
}

.signup-custom-tooltip {
    position: fixed;
    z-index: 10000;
    max-width: min(320px, calc(100vw - 16px));
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #f4f4f4;
    color: #1e1e1e;
    box-shadow: 0 6px 20px rgb(0 0 0 / 18%);
    font-size: 15px;
    line-height: 1.45;
    pointer-events: none;
}

.signup-custom-tooltip[hidden] {
    display: none;
}

.recovery-card {
    width: min(715px, 100%);
    padding: 42px 64px 36px;
    border: 2px solid #f2b735;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 7px 0 #267fea;
    color: #111;
    text-align: center;
}

.recovery-logo {
    display: block;
    width: min(180px, 60%);
    height: auto;
    max-height: 76px;
    object-fit: contain;
    margin: 0 auto 30px;
}

.recovery-card h1,
.recovery-modal h2 {
    margin: 0 0 25px;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.recovery-intro,
.recovery-document-display,
.recovery-password-rule,
.recovery-site-policy {
    margin: 0 auto 26px;
    font-size: 16px;
    line-height: 1.45;
}

.recovery-card .mform {
    margin: 32px 0 24px;
    text-align: left;
}

.recovery-card .mform fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.recovery-card .mform .fitem {
    display: block;
    margin: 0 0 18px;
}

.recovery-card .mform .col-form-label,
.recovery-password-field label {
    display: block;
    width: 100%;
    padding: 0 0 8px;
    color: #111;
    font-size: 16px;
    font-weight: 700;
}

.recovery-card .mform .felement {
    width: 100%;
    margin: 0;
}

.recovery-card .mform .fitem_actionbuttons .felement {
    text-align: center;
}

.recovery-card .mform input[name="documentnumber"],
.recovery-password-control input {
    width: 100%;
    min-height: 64px;
    padding: 14px 18px;
    border: 1px solid #d4d4d4;
    border-radius: 15px;
    background: #fff;
    color: #111;
    font-size: 16px;
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 4%);
}

.recovery-card .mform input[name="documentnumber"]::placeholder,
.recovery-password-control input::placeholder {
    color: #aaa;
    opacity: 1;
    text-align: center;
}

.recovery-submit,
.recovery-button {
    display: inline-flex;
    min-width: 280px;
    min-height: 70px;
    align-items: center;
    justify-content: center;
    margin: 8px auto 0;
    padding: 16px 24px;
    border: 0;
    border-radius: 15px;
    background: #4b93ff;
    color: #fff !important;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.recovery-submit:hover,
.recovery-button:hover {
    background: #347fef;
    color: #fff !important;
    text-decoration: none;
}

.recovery-submit:focus-visible,
.recovery-button:focus-visible,
.recovery-toggle-password:focus-visible,
.recovery-cancel-link:focus-visible,
.recovery-back-link:focus-visible,
.recovery-contact a:focus-visible {
    outline: 3px solid #1b5bb7;
    outline-offset: 3px;
}

.recovery-contact {
    margin: 22px 0 8px;
    color: #aaa;
    font-size: 16px;
}

.recovery-contact a,
.recovery-cancel-link,
.recovery-back-link {
    color: #4b93ff;
    text-decoration: none;
}

.recovery-contact a:hover,
.recovery-cancel-link:hover,
.recovery-back-link:hover {
    color: #276bce;
    text-decoration: underline;
}

.recovery-back-link,
.recovery-cancel-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 16px;
}

.recovery-reset-card {
    text-align: center;
}

.recovery-reset-card .recovery-intro {
    margin-bottom: 8px;
}

.recovery-document-display {
    margin-bottom: 20px;
    font-weight: 700;
}

.recovery-password-rule,
.recovery-site-policy {
    margin: 0 0 20px;
    font-size: 16px;
}

.recovery-site-policy {
    color: #505050;
}

.recovery-reset-form {
    margin-top: 24px;
    text-align: left;
}

.recovery-reset-form .recovery-button {
    display: flex;
    width: min(300px, 100%);
    margin: 26px auto 0;
}

.recovery-password-field {
    margin: 0 0 18px;
}

.recovery-password-control {
    display: flex;
    width: 100%;
}

.recovery-password-control input {
    min-width: 0;
    border-radius: 15px 0 0 15px;
}

.recovery-toggle-password {
    display: inline-flex;
    width: 70px;
    min-width: 70px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0 15px 15px 0;
    background: #4b93ff;
    color: #fff;
    cursor: pointer;
}

.recovery-toggle-password:hover {
    background: #347fef;
}

.recovery-toggle-password svg {
    width: 28px;
    height: 28px;
}

.recovery-logout-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 22px 0 26px;
    font-size: 16px;
    line-height: 1.4;
}

.recovery-logout-option input {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    margin: 3px 0 0;
    accent-color: #4b93ff;
}

.recovery-form-error {
    margin: 16px 0;
    padding: 12px 16px;
    border: 1px solid #c93737;
    border-radius: 10px;
    background: #fff0f0;
    color: #8d1d1d;
    text-align: left;
}

.recovery-card .mform .error,
.recovery-card .mform .invalid-feedback {
    color: #a12626;
}

.recovery-modal-backdrop {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgb(121 170 225 / 56%);
}

.recovery-modal {
    width: min(848px, 100%);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px clamp(24px, 7vw, 100px);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px rgb(0 0 0 / 12%);
    color: #111;
    text-align: center;
}

.recovery-modal h2 {
    margin-bottom: 34px;
}

.recovery-modal p {
    margin: 0 0 42px;
    font-size: 16px;
    line-height: 1.45;
}

body.path-local-signup .tool_dataprivacy,
body.path-local-signup .mobilelink {
    display: none !important;
}

@media (max-width: 767.98px) {
    .signup-recovery-page {
        min-height: 100vh;
        padding: 24px 14px;
    }

    .recovery-card {
        padding: 30px 22px 26px;
        border-radius: 22px;
    }

    .recovery-logo {
        margin-bottom: 22px;
    }

    .recovery-card h1,
    .recovery-modal h2 {
        font-size: 16px;
    }

    .recovery-intro,
    .recovery-document-display,
    .recovery-modal p {
        font-size: 16px;
    }

    .recovery-card .mform input[name="documentnumber"],
    .recovery-password-control input {
        min-height: 58px;
        font-size: 16px;
    }

    .recovery-submit,
    .recovery-button {
        width: 100%;
        min-width: 0;
        min-height: 60px;
        font-size: 16px;
    }

    .recovery-modal {
        min-height: 320px;
        padding: 34px 24px;
    }

    .recovery-modal p {
        margin-bottom: 30px;
    }

    .recovery-reset-card {
        padding: 20px 18px 18px;
    }

    .recovery-reset-card .recovery-logo {
        width: min(145px, 55%);
        max-height: 58px;
        margin-bottom: 12px;
    }

    .recovery-reset-card h1 {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .recovery-reset-card .recovery-intro,
    .recovery-reset-card .recovery-document-display,
    .recovery-reset-card .recovery-password-rule,
    .recovery-reset-card .recovery-site-policy {
        font-size: 16px;
        line-height: 1.45;
    }

    .recovery-reset-card .recovery-intro {
        margin-bottom: 4px;
    }

    .recovery-reset-card .recovery-document-display,
    .recovery-reset-card .recovery-password-rule,
    .recovery-reset-card .recovery-site-policy {
        margin-bottom: 12px;
    }

    .recovery-reset-form {
        margin-top: 10px;
    }

    .recovery-password-field {
        margin-bottom: 12px;
    }

    .recovery-password-field label {
        padding-bottom: 5px;
        font-size: 16px;
    }

    .recovery-password-control input {
        min-height: 50px;
        padding: 10px 12px;
        font-size: 16px;
    }

    .recovery-toggle-password {
        width: 56px;
        min-width: 56px;
    }

    .recovery-toggle-password svg {
        width: 24px;
        height: 24px;
    }

    .recovery-logout-option {
        gap: 8px;
        margin: 12px 0 14px;
        font-size: 16px;
    }

    .recovery-reset-form .recovery-button {
        min-height: 52px;
        margin-top: 14px;
        padding: 12px 18px;
        font-size: 16px;
    }

    .recovery-reset-card .recovery-cancel-link {
        margin-top: 8px;
        font-size: 16px;
    }
}

@media (max-width: 1024px), (max-height: 850px) {
    .signup-password-reset-page {
        min-height: 100vh;
        min-height: 100svh;
        align-items: center;
        padding: 8px 10px;
    }

    .signup-password-reset-page .recovery-reset-card {
        padding: 14px 20px 12px !important;
        border-radius: 20px;
    }

    .signup-password-reset-page .recovery-logo {
        width: 120px;
        max-height: 44px;
        margin-bottom: 8px;
    }

    .signup-password-reset-page .recovery-reset-card h1 {
        margin-bottom: 8px !important;
        font-size: 16px !important;
        line-height: 1.3;
    }

    .signup-password-reset-page .recovery-intro,
    .signup-password-reset-page .recovery-document-display,
    .signup-password-reset-page .recovery-password-rule,
    .signup-password-reset-page .recovery-site-policy {
        font-size: 16px !important;
        line-height: 1.45;
    }

    .signup-password-reset-page .recovery-intro {
        margin-bottom: 3px !important;
    }

    .signup-password-reset-page .recovery-document-display,
    .signup-password-reset-page .recovery-password-rule,
    .signup-password-reset-page .recovery-site-policy {
        margin-bottom: 8px !important;
    }

    .signup-password-reset-page .recovery-reset-form {
        margin-top: 8px;
    }

    .signup-password-reset-page .recovery-password-field {
        margin-bottom: 9px;
    }

    .signup-password-reset-page .recovery-password-field label {
        padding-bottom: 3px;
        font-size: 16px !important;
        line-height: 1.4;
    }

    .signup-password-reset-page .recovery-password-control input,
    .signup-password-reset-page .recovery-toggle-password {
        height: 46px !important;
        min-height: 46px !important;
    }

    .signup-password-reset-page .recovery-password-control input {
        padding: 8px 10px;
        font-size: 16px !important;
        border-radius: 11px 0 0 11px;
    }

    .signup-password-reset-page .recovery-toggle-password {
        width: 50px;
        min-width: 50px;
        border-radius: 0 11px 11px 0;
    }

    .signup-password-reset-page .recovery-toggle-password svg {
        width: 22px;
        height: 22px;
    }

    .signup-password-reset-page .recovery-logout-option {
        gap: 8px;
        margin: 9px 0 10px;
        font-size: 16px !important;
        line-height: 1.4;
    }

    .signup-password-reset-page .recovery-logout-option input {
        width: 18px;
        height: 18px;
        margin-top: 1px;
    }

    .signup-password-reset-page .recovery-reset-form .recovery-button {
        min-height: 48px;
        margin-top: 10px;
        padding: 10px 16px;
        font-size: 16px !important;
    }

    .signup-password-reset-page .recovery-cancel-link {
        margin-top: 6px;
        font-size: 16px !important;
    }

    .signup-password-reset-page .recovery-form-error {
        margin: 8px 0;
        padding: 8px 10px;
        font-size: 16px;
    }
}

@media (min-height: 600px) {
    html:has(body#page-local-signup-reset_password),
    html:has(body#page-local-signup-forgot_password) {
        overflow: hidden;
    }

    body#page-local-signup-reset_password,
    body#page-local-signup-forgot_password {
        overflow: hidden;
    }

    body#page-local-signup-reset_password .signup-password-reset-page,
    body#page-local-signup-forgot_password .signup-recovery-page {
        position: fixed;
        z-index: 10;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100svh;
        min-height: 0 !important;
        box-sizing: border-box;
        overflow-y: auto;
        padding: 8px 10px;
    }
}
