.forgot-password-hero {
    padding: 42px 0;
    background:
        linear-gradient(
            135deg,
            #f4f8fd 0%,
            #ffffff 55%,
            #f7faff 100%
        );
    border-bottom: 1px solid #e5ebf2;
}

.forgot-password-hero-content {
    max-width: 760px;
}

.forgot-password-kicker,
.forgot-password-small-label {
    display: inline-block;
    margin-bottom: 3px;
    color: #164d84;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.forgot-password-hero h1 {
    margin: 0 0 10px;
    color: #11233b;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.15;
}

.forgot-password-hero p {
    max-width: 700px;
    margin: 0;
    color: #637084;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   SECTION / LAYOUT
========================================================= */

.forgot-password-section {
    padding: 48px 0 70px;
    background: #ffffff;
}

.forgot-password-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(380px, 470px);
    gap: 55px;
    align-items: center;
}


/* =========================================================
   LEFT SIDE
========================================================= */

.forgot-password-info {
    max-width: 590px;
}

.forgot-password-info h2 {
    margin: 0 0 12px;
    color: #15263e;
    font-size: 32px;
    line-height: 1.25;
}

.forgot-password-info > p {
    margin: 0;
    color: #697689;
    font-size: 15px;
    line-height: 1.7;
}

.forgot-password-steps {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.forgot-password-step {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.forgot-step-number {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    border-radius: 10px;

    background: #e9f3fd;
    color: #0d4c87;

    font-size: 14px;
    font-weight: 800;
}

.forgot-password-step strong {
    display: block;
    margin-bottom: 2px;
    color: #1c2d44;
    font-size: 14px;
}

.forgot-password-step small {
    display: block;
    color: #738094;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   CARD
========================================================= */

.forgot-password-card {
    padding: 27px 30px 29px;

    background: #ffffff;

    border: 1px solid #dfe6ee;
    border-radius: 20px;

    box-shadow:
        0 16px 45px
        rgba(16, 47, 82, 0.08);
}

.forgot-password-card-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 19px;
}

.forgot-password-card-icon {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    border-radius: 12px;

    background: #0d3f73;
    color: #ffffff;

    font-size: 21px;
    font-weight: 700;
}

.forgot-password-card-header h2 {
    margin: 0;
    color: #17283f;
    font-size: 24px;
    line-height: 1.2;
}


/* =========================================================
   FORM
========================================================= */

.forgot-password-form {
    display: grid;
    gap: 14px;
}

.forgot-form-group {
    display: grid;
    gap: 4px;
    margin: 0;
}

.forgot-form-group label {
    margin: 0 0 3px;
    color: #26384d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.forgot-form-group label span {
    color: #c0392b;
}


/* =========================================================
   INPUT
========================================================= */

.forgot-form-group input {
    width: 100%;
    min-height: 46px;

    padding: 0 13px;

    border: 1px solid #cfd8e3;
    border-radius: 10px;

    background: #ffffff;
    color: #1d2d42;

    font-size: 14px;

    box-sizing: border-box;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.forgot-form-group input:hover {
    border-color: #b8c5d4;
}

.forgot-form-group input:focus {
    border-color: #0d548f;

    box-shadow:
        0 0 0 3px
        rgba(13, 84, 143, 0.10);
}


/* =========================================================
   INPUT WRAP
========================================================= */

.forgot-input-wrap {
    position: relative;
    width: 100%;
}

.forgot-input-wrap input {
    padding-left: 42px;
    padding-right: 44px;
}

.forgot-input-icon {
    position: absolute;

    top: 50%;
    left: 13px;

    transform: translateY(-50%);

    color: #7b8899;
    font-size: 14px;

    pointer-events: none;
}


/* =========================================================
   PASSWORD
========================================================= */

.forgot-password-toggle {
    position: absolute;

    top: 50%;
    right: 6px;

    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    padding: 0;

    transform: translateY(-50%);

    border: 0;
    border-radius: 7px;

    background: transparent;

    cursor: pointer;
}

.forgot-password-toggle:hover {
    background: #f2f6fa;
}


/* =========================================================
   OTP
========================================================= */

.forgot-otp-section {
    display: grid;
    gap: 13px;

    padding: 14px;

    border: 1px solid #dbe5ef;
    border-radius: 12px;

    background: #f8fbff;
}

.forgot-otp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.forgot-primary-btn,
.forgot-secondary-btn,
.forgot-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 18px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.forgot-secondary-btn {
    width: 100%;

    border: 1px solid #0d4f8c;

    background: #ffffff;
    color: #0d4f8c;
}

.forgot-secondary-btn:hover {
    background: #f1f7fd;
}

.forgot-primary-btn {
    flex: 1;

    border: 0;

    background: #0d3f73;
    color: #ffffff;
}

.forgot-primary-btn:hover {
    background: #0a335f;
}

.forgot-link-btn {
    border: 0;
    background: transparent;

    color: #0d5799;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.forgot-link-btn:hover {
    text-decoration: underline;
}


/* =========================================================
   OTP VERIFIED
========================================================= */

.forgot-verified-box {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 11px 13px;

    border: 1px solid #bce4c9;
    border-radius: 9px;

    background: #f2fff6;
    color: #206e3b;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   NEW PASSWORD SECTION
========================================================= */

.forgot-password-fields {
    display: grid;
    gap: 14px;
}


/* =========================================================
   SUBMIT
========================================================= */

.forgot-submit-btn {
    width: 100%;

    border: 0;

    background: #0d3f73;
    color: #ffffff;
}

.forgot-submit-btn:hover {
    background: #0a335f;

    box-shadow:
        0 8px 20px
        rgba(13, 63, 115, 0.18);

    transform: translateY(-1px);
}

.forgot-submit-btn:disabled,
.forgot-secondary-btn:disabled,
.forgot-primary-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   LOGIN LINK
========================================================= */

.forgot-login-link {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 2px;

    color: #778497;
    font-size: 13px;
}

.forgot-login-link a {
    color: #0d5799;
    font-weight: 700;
    text-decoration: none;
}

.forgot-login-link a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   MESSAGE
========================================================= */

.forgot-password-message {
    margin-bottom: 14px;

    padding: 11px 13px;

    border-radius: 9px;

    font-size: 13px;
    line-height: 1.5;
}

.forgot-password-message.is-error {
    border: 1px solid #f0c6c6;
    background: #fff5f5;
    color: #9d2626;
}

.forgot-password-message.is-success {
    border: 1px solid #bce4c9;
    background: #f2fff6;
    color: #206e3b;
}

.is-hidden {
    display: none !important;
}


/* =========================================================
   PROCESSING
========================================================= */

.forgot-processing-overlay {
    position: fixed;

    z-index: 99999;

    inset: 0;

    display: grid;
    place-items: center;

    padding: 20px;

    background:
        rgba(6, 20, 37, 0.45);

    backdrop-filter: blur(3px);
}

.forgot-processing-box {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px 20px;

    border-radius: 12px;

    background: #ffffff;
    color: #1d2b3d;

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, 0.18);

    font-size: 14px;
    font-weight: 700;
}

.forgot-processing-spinner {
    width: 20px;
    height: 20px;

    border: 3px solid #dce5ee;
    border-top-color: #0d3f73;
    border-radius: 50%;

    animation:
        forgotSpin 0.7s linear infinite;
}

@keyframes forgotSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   JS EFFECT
========================================================= */

.forgot-password-info,
.forgot-password-card {
    opacity: 0;

    transform: translateY(16px);

    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.forgot-password-info.is-visible,
.forgot-password-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .forgot-password-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .forgot-password-info {
        max-width: none;
    }

    .forgot-password-card {
        width: 100%;
        max-width: 540px;
        margin: 0 auto;
    }
}


@media (max-width: 600px) {

    .forgot-password-hero {
        padding: 32px 0;
    }

    .forgot-password-hero h1 {
        font-size: 31px;
    }

    .forgot-password-section {
        padding: 34px 0 50px;
    }

    .forgot-password-info h2 {
        font-size: 26px;
    }

    .forgot-password-card {
        padding: 21px 16px 23px;
        border-radius: 15px;
    }

    .forgot-password-card-header h2 {
        font-size: 22px;
    }

    .forgot-otp-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .forgot-primary-btn,
    .forgot-link-btn {
        width: 100%;
        min-height: 43px;
    }
}
@media (prefers-reduced-motion: reduce) {.forgot-password-info,.forgot-password-card,.forgot-processing-spinner {opacity: 1;transform: none;transition: none;animation: none;}}