/* Texas Process Servers Academy | Forgot Password.
   Page-scoped design matching Login / About. Does not override site.css. */

.tpsa-forgot-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 245px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(244,250,255,.99) 0%, rgba(232,245,255,.96) 42%, rgba(237,247,255,.72) 62%, rgba(237,247,255,.18) 100%), url("../images/slide3.jpg") right center / cover no-repeat;
    border-bottom: 1px solid #dce9f4;
}

    .tpsa-forgot-hero::before {
        content: "";
        position: absolute;
        width: 445px;
        height: 445px;
        right: -105px;
        top: -180px;
        border-radius: 50%;
        background: rgba(7,137,249,.045);
        pointer-events: none;
    }

    .tpsa-forgot-hero::after {
        content: "";
        position: absolute;
        right: 135px;
        bottom: -190px;
        width: 355px;
        height: 355px;
        border: 1px solid rgba(7,137,249,.11);
        border-radius: 50%;
        pointer-events: none;
    }

    .tpsa-forgot-hero > .container {
        position: relative;
        z-index: 1;
    }

.tpsa-forgot-hero-content {
    max-width: 1040px;
    margin: 0 auto;
    padding: 45px 0;
    animation: tpsaForgotEnter .68s ease-out both;
}

.tpsa-forgot-hero-eyebrow {
    display: block;
    margin-bottom: 11px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #355d84;
}

.tpsa-forgot-hero h1 {
    margin: 0 0 12px;
    color: #082e62;
    font-size: 44px;
    line-height: 1.12;
    letter-spacing: -.7px;
    font-weight: 800;
}

.tpsa-forgot-hero p {
    max-width: 650px;
    margin: 0;
    color: #35536f;
    font-size: 17px;
    line-height: 1.65;
}

.tpsa-forgot-section {
    padding: 62px 0 75px;
    background: linear-gradient(180deg, #fff 0%, #fff 70%, #f7fbff 100%);
}

.tpsa-forgot-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(370px, 440px);
    align-items: center;
    gap: clamp(35px, 5.3vw, 78px);
    max-width: 1040px;
    margin: 0 auto;
}

.tpsa-forgot-info {
    min-width: 0;
    animation: tpsaForgotEnter .72s ease-out .1s both;
}

.tpsa-forgot-label {
    position: relative;
    display: block;
    margin-bottom: 15px;
    padding-left: 21px;
    color: #496988;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 2.5px;
}

    .tpsa-forgot-label::before {
        content: "";
        position: absolute;
        left: 2px;
        top: 4px;
        width: 10px;
        height: 10px;
        border-radius: 2px;
        transform: rotate(45deg);
        background: #0789f9;
    }

.tpsa-forgot-info > h2 {
    max-width: 470px;
    margin: 0 0 16px;
    color: #082e62;
    font-size: 35px;
    line-height: 1.17;
    font-weight: 800;
    letter-spacing: -.55px;
}

.tpsa-forgot-intro {
    max-width: 470px;
    margin: 0 0 26px;
    color: #4c6781;
    font-size: 16px;
    line-height: 1.76;
}

.tpsa-forgot-feature-list {
    display: grid;
    gap: 9px;
}

.tpsa-forgot-feature {
    display: grid;
    grid-template-columns: 49px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    padding: 10px 13px 10px 0;
    border-radius: 12px;
    transition: background-color .27s ease;
}

    .tpsa-forgot-feature:hover {
        background: #f2f8fe;
    }

.tpsa-forgot-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    border: 1px solid #d7eafa;
    border-radius: 14px;
    background: #eaf5ff;
    color: #1374d5;
    font-size: 19px;
    transition: background-color .27s ease, color .27s ease, border-color .27s ease;
}

.tpsa-forgot-feature:hover .tpsa-forgot-feature-icon {
    border-color: #b8dcfa;
    background: #dff0ff;
    color: #0c5cae;
}

.tpsa-forgot-feature h3 {
    margin: 0 0 4px;
    color: #143b69;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.32;
}

.tpsa-forgot-feature p {
    margin: 0;
    color: #627b94;
    font-size: 13px;
    line-height: 1.55;
}

.tpsa-forgot-help {
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: 480px;
    margin-top: 26px;
    padding: 15px 17px;
    border: 1px solid #dae9f7;
    border-radius: 11px;
    background: #f6fbff;
    color: #526d86;
    font-size: 13px;
    line-height: 1.55;
}

    .tpsa-forgot-help > .fa {
        color: #1479db;
        font-size: 18px;
    }

    .tpsa-forgot-help a {
        color: #086ed0;
        font-weight: 800;
        text-decoration: none;
    }

        .tpsa-forgot-help a:hover,
        .tpsa-forgot-help a:focus-visible {
            color: #082e62;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

.tpsa-forgot-card {
    position: relative;
    min-width: 0;
    padding: 35px 34px 31px;
    overflow: hidden;
    border: 1px solid #d6e7f6;
    border-radius: 19px;
    background: radial-gradient(circle at 100% 0, rgba(7,137,249,.075), transparent 38%), linear-gradient(145deg, #fff 0%, #fafdff 100%);
    box-shadow: 0 20px 52px rgba(8,46,98,.095);
    transition: box-shadow .3s ease, border-color .3s ease;
    animation: tpsaForgotEnter .72s ease-out .2s both;
}

    .tpsa-forgot-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background: linear-gradient(180deg, #0789f9, #76c5fc);
    }

    .tpsa-forgot-card:hover {
        border-color: #bddcf6;
        box-shadow: 0 25px 59px rgba(8,46,98,.13);
    }

.tpsa-forgot-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 59px;
    height: 59px;
    margin-bottom: 22px;
    border: 1px solid #d6eafa;
    border-radius: 16px;
    background: #e7f4ff;
    color: #1378d7;
    font-size: 23px;
}

.tpsa-forgot-card-heading {
    margin-bottom: 28px;
}

    .tpsa-forgot-card-heading > span {
        display: block;
        margin-bottom: 9px;
        color: #567590;
        font-size: 11px;
        font-weight: 800;
        line-height: 1.3;
        letter-spacing: 2px;
    }

    .tpsa-forgot-card-heading h2 {
        margin: 0 0 10px;
        color: #082e62;
        font-size: 26px;
        line-height: 1.22;
        font-weight: 800;
        letter-spacing: -.35px;
    }

    .tpsa-forgot-card-heading p {
        margin: 0;
        color: #617c96;
        font-size: 14px;
        line-height: 1.65;
    }

.tpsa-forgot-form {
    margin: 0;
}

.tpsa-forgot-field {
    margin: 0 0 25px;
}

.tpsa-forgot-field-label {
    display: inline-block;
    margin: 0 0 10px;
    color: #163b65;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.tpsa-forgot-input-wrap {
    position: relative;
}

    .tpsa-forgot-input-wrap > .fa {
        position: absolute;
        top: 50%;
        left: 16px;
        z-index: 1;
        color: #7992ab;
        font-size: 16px;
        transform: translateY(-50%);
        pointer-events: none;
        transition: color .25s ease;
    }

    .tpsa-forgot-input-wrap:focus-within > .fa {
        color: #0b75d4;
    }

    .tpsa-forgot-input-wrap .tpsa-forgot-input {
        width: 100%;
        height: 51px;
        min-height: 51px;
        padding: 12px 17px 12px 45px;
        border: 1px solid #cedfed;
        border-radius: 10px;
        outline: none;
        background: #fff;
        box-shadow: none;
        color: #13365e;
        font-family: inherit;
        font-size: 14px;
        line-height: 1.5;
        transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
    }

        .tpsa-forgot-input-wrap .tpsa-forgot-input::placeholder {
            color: #8da1b7;
            opacity: 1;
        }

        .tpsa-forgot-input-wrap .tpsa-forgot-input:focus {
            border-color: #3995ec;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(7,137,249,.11);
        }

.tpsa-forgot-field-hint {
    margin: 10px 0 0;
    color: #758aa2;
    font-size: 12px;
    line-height: 1.55;
}

.tpsa-forgot-validation {
    margin: 0;
}

/* Server-rendered recovery error. Uses the same card typography and spacing. */
.tpsa-forgot-send-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 22px;
    padding: 16px 15px;
    border: 1px solid #efc8ce;
    border-left: 3px solid #d24e65;
    border-radius: 11px;
    background: linear-gradient(110deg, #fff7f8 0%, #fffdfd 100%);
    color: #823147;
    font-family: inherit;
    outline: none;
}

.tpsa-forgot-send-error-icon {
    display: inline-flex;
    flex: 0 0 35px;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid #f0cbd2;
    border-radius: 10px;
    background: #ffebee;
    color: #c44960;
    font-size: 17px;
}

.tpsa-forgot-send-error-content {
    flex: 1 1 auto;
    min-width: 0;
}

    .tpsa-forgot-send-error-content strong {
        display: block;
        margin: 0 0 5px;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.4;
        color: #913247;
    }

    .tpsa-forgot-send-error-content p {
        margin: 0 0 8px;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.6;
        color: #805366;
    }

    .tpsa-forgot-send-error-content span {
        font-size: 12px;
        line-height: 1.5;
        color: #805366;
    }

    .tpsa-forgot-send-error-content a {
        color: #a3344f;
        font-weight: 800;
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color .24s ease;
    }

        .tpsa-forgot-send-error-content a:hover,
        .tpsa-forgot-send-error-content a:focus-visible {
            color: #75263d;
        }

.tpsa-forgot-errors {
    margin: 0 0 21px;
    padding: 15px 17px;
    border: 1px solid #f0cad1;
    border-radius: 11px;
    background: #fff6f7;
    color: #963149;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
}

    .tpsa-forgot-errors ul {
        margin: 7px 0 0;
        padding-left: 18px;
    }

    .tpsa-forgot-errors li {
        margin: 3px 0;
    }

.tpsa-forgot-submit {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid #147be4;
    border-radius: 10px;
    background: #147be4;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 19px rgba(20,123,228,.20);
    transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

    .tpsa-forgot-submit:hover,
    .tpsa-forgot-submit:focus-visible {
        border-color: #0a5dbb;
        background: #0a65c5;
        color: #fff;
        box-shadow: 0 10px 24px rgba(10,101,197,.24);
    }

    .tpsa-forgot-submit:focus-visible {
        outline: 3px solid #9acfff;
        outline-offset: 2px;
    }

.tpsa-forgot-login-return {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    padding-top: 21px;
    border-top: 1px solid #e5eef6;
    font-size: 13px;
    line-height: 1.5;
    color: #657e97;
}

    .tpsa-forgot-login-return a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #0a71d3;
        font-weight: 800;
        text-decoration: none;
        transition: color .25s ease;
    }

        .tpsa-forgot-login-return a:hover,
        .tpsa-forgot-login-return a:focus-visible {
            color: #082e62;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .tpsa-forgot-login-return a .fa {
            font-size: 11px;
        }

@keyframes tpsaForgotEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .tpsa-forgot-section {
        padding: 44px 0 59px;
    }

    .tpsa-forgot-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
        gap: 30px;
    }

    .tpsa-forgot-info > h2 {
        font-size: 30px;
    }

    .tpsa-forgot-intro {
        font-size: 15px;
    }

    .tpsa-forgot-card {
        padding: 29px 26px 27px;
    }
}

@media (max-width: 767px) {
    .tpsa-forgot-hero {
        min-height: 200px;
        background: linear-gradient(90deg, rgba(244,250,255,.99) 0%, rgba(232,245,255,.97) 58%, rgba(237,247,255,.78) 100%), url("../images/slide1.jpg") 68% center / cover no-repeat;
    }

        .tpsa-forgot-hero > .container {
            padding-left: 15px;
            padding-right: 15px;
        }

    .tpsa-forgot-hero-content {
        padding: 35px 0;
    }

    .tpsa-forgot-hero h1 {
        font-size: 34px;
    }

    .tpsa-forgot-hero p {
        font-size: 15px;
    }

    .tpsa-forgot-section {
        padding: 36px 0 52px;
    }

    .tpsa-forgot-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 31px;
        max-width: 510px;
    }

    .tpsa-forgot-info > h2 {
        max-width: 500px;
    }

    .tpsa-forgot-card {
        width: 100%;
    }

    .tpsa-forgot-feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tpsa-forgot-hero {
        min-height: 184px;
    }

    .tpsa-forgot-hero-content {
        padding: 30px 0;
    }

    .tpsa-forgot-hero-eyebrow {
        font-size: 11px;
    }

    .tpsa-forgot-hero h1 {
        font-size: 29px;
    }

    .tpsa-forgot-section {
        padding: 30px 0 46px;
    }

    .tpsa-forgot-info > h2 {
        font-size: 27px;
    }

    .tpsa-forgot-intro {
        font-size: 14px;
        line-height: 1.68;
        margin-bottom: 20px;
    }

    .tpsa-forgot-feature {
        grid-template-columns: 43px minmax(0, 1fr);
        gap: 12px;
    }

    .tpsa-forgot-feature-icon {
        width: 43px;
        height: 43px;
        font-size: 16px;
    }

    .tpsa-forgot-help {
        padding: 13px 14px;
    }

    .tpsa-forgot-card {
        padding: 26px 21px 25px;
        border-radius: 16px;
    }

    .tpsa-forgot-card-icon {
        margin-bottom: 19px;
    }

    .tpsa-forgot-card-heading {
        margin-bottom: 23px;
    }

        .tpsa-forgot-card-heading h2 {
            font-size: 23px;
        }

    .tpsa-forgot-login-return {
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tpsa-forgot-hero-content,
    .tpsa-forgot-info,
    .tpsa-forgot-card {
        animation: none;
    }

    .tpsa-forgot-card,
    .tpsa-forgot-feature,
    .tpsa-forgot-feature-icon,
    .tpsa-forgot-input-wrap .tpsa-forgot-input,
    .tpsa-forgot-submit,
    .tpsa-forgot-login-return a {
        transition: none;
    }
}

/* Inline confirmation: shares the existing recovery card design. */
.tpsa-forgot-request[hidden],
.tpsa-forgot-success[hidden] {
    display: none;
}

.tpsa-forgot-card.is-success::before {
    background: linear-gradient(180deg, #1c92e8 0%, #58baa4 100%);
}

.tpsa-forgot-success {
    text-align: center;
    outline: none;
    animation: tpsaForgotSuccessEnter .46s ease-out both;
}

.tpsa-forgot-success-icon {
    position: relative;
    width: 74px;
    height: 74px;
    margin: 3px auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5eaf8;
    border-radius: 22px;
    background: #eaf6ff;
    color: #1479d7;
    font-size: 29px;
}

.tpsa-forgot-success-check {
    position: absolute;
    right: -8px;
    bottom: -7px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #15966b;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 3px 10px rgba(21,150,107,.15);
}

.tpsa-forgot-success-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #587590;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 2px;
}

.tpsa-forgot-success h2 {
    margin: 0 0 14px;
    color: #082e62;
    font-size: 29px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.4px;
}

.tpsa-forgot-success-description {
    margin: 0;
    color: #536e88;
    font-size: 14px;
    line-height: 1.72;
}

.tpsa-forgot-success-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 27px 0 25px;
    padding: 15px 16px;
    border: 1px solid #dbeaf8;
    border-radius: 11px;
    background: #f3f9ff;
    text-align: left;
}

    .tpsa-forgot-success-note > .fa {
        flex: 0 0 18px;
        margin-top: 2px;
        color: #167bd8;
        font-size: 18px;
    }

    .tpsa-forgot-success-note strong {
        display: block;
        margin: 0 0 4px;
        color: #163b65;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.4;
    }

    .tpsa-forgot-success-note p {
        margin: 0;
        color: #607991;
        font-size: 12px;
        line-height: 1.58;
    }

.tpsa-forgot-success-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid #147be4;
    border-radius: 10px;
    background: #147be4;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none !important;
    box-shadow: 0 8px 19px rgba(20,123,228,.20);
    transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

    .tpsa-forgot-success-login:hover,
    .tpsa-forgot-success-login:focus-visible {
        border-color: #0a5dbb;
        background: #0a65c5;
        color: #fff !important;
        box-shadow: 0 10px 24px rgba(10,101,197,.24);
    }

.tpsa-forgot-success-retry {
    display: inline-flex;
    justify-content: center;
    margin-top: 20px;
    padding: 3px 8px;
    border: 0;
    background: transparent;
    color: #0a71d3;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    cursor: pointer;
    transition: color .25s ease;
}

    .tpsa-forgot-success-retry:hover,
    .tpsa-forgot-success-retry:focus-visible {
        color: #082e62;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .tpsa-forgot-success-login:focus-visible,
    .tpsa-forgot-success-retry:focus-visible {
        outline: 3px solid #9acfff;
        outline-offset: 3px;
    }

@keyframes tpsaForgotSuccessEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .tpsa-forgot-success-icon {
        width: 66px;
        height: 66px;
        margin-bottom: 20px;
        font-size: 26px;
    }

    .tpsa-forgot-success h2 {
        font-size: 25px;
    }

    .tpsa-forgot-success-note {
        padding: 14px 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tpsa-forgot-success {
        animation: none;
    }

    .tpsa-forgot-success-login,
    .tpsa-forgot-success-retry {
        transition: none;
    }
}
