/* =========================================================
   FORGOT PASSWORD PAGE
   Scoped module CSS
========================================================= */

body:has(.forgot-password-page) {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 82% 8%, rgba(0, 184, 217, 0.18), transparent 34%),
        radial-gradient(circle at 8% 92%, rgba(4, 118, 217, 0.14), transparent 34%),
        linear-gradient(135deg, #f7fcff 0%, #eef8ff 48%, #e2f4ff 100%) !important;
}

.forgot-password-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 2vw, 32px);
    overflow: hidden;
}

.forgot-password-page *,
.forgot-password-page *::before,
.forgot-password-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   BACKGROUND SHAPES
========================================================= */

.forgot-bg-shape {
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
    opacity: 0.85;
}

.forgot-bg-shape-one {
    width: 440px;
    height: 440px;
    top: -170px;
    right: -130px;
    background: rgba(0, 184, 217, 0.18);
}

.forgot-bg-shape-two {
    width: 390px;
    height: 390px;
    left: -160px;
    bottom: -165px;
    background: rgba(4, 118, 217, 0.13);
}

/* =========================================================
   SHELL / CARD
========================================================= */

.forgot-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 540px);
}

.forgot-card {
    width: 100%;
    padding: clamp(26px, 2.4vw, 36px);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(160, 210, 245, 0.75);
    box-shadow:
        0 28px 70px rgba(2, 62, 115, 0.15),
        0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* =========================================================
   BRAND
========================================================= */

.forgot-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(22px, 2vw, 30px);
    color: #063a63;
    text-decoration: none;
}

.forgot-brand:hover {
    color: #063a63;
    text-decoration: none;
}

.forgot-brand__logo {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    font-size: 26px;
    background: linear-gradient(135deg, #0784de, #00b8d9);
    box-shadow: 0 14px 30px rgba(4, 118, 217, 0.25);
}

.forgot-brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forgot-brand h1 {
    margin: 0;
    color: #05345f;
    font-size: clamp(20px, 1.5vw, 23px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.forgot-brand p {
    margin: 4px 0 0;
    color: #4f7594;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

/* =========================================================
   HEADER
========================================================= */

.forgot-header {
    margin-bottom: 24px;
}

.forgot-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 13px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: #045eaa;
    background: #e9f6ff;
    border: 1px solid #c8e7fb;
    font-size: 13px;
    font-weight: 900;
}

.forgot-header h2 {
    margin: 0;
    color: #052f57;
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.forgot-header p {
    margin: 12px 0 0;
    color: #537894;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.55;
}

/* =========================================================
   FORM
========================================================= */

.forgot-password-page .mb-3 {
    margin-bottom: 16px !important;
}

.forgot-password-page .form-label {
    display: block;
    margin-bottom: 8px;
    color: #07375f;
    font-size: 14px;
    font-weight: 900;
}

.forgot-password-page .form-label span {
    color: #e5484d;
}

.forgot-input-group {
    min-height: 58px;
    display: flex;
    align-items: center;
    border: 1px solid #badff8;
    border-radius: 19px;
    overflow: hidden;
    background: #f8fcff;
    transition: 0.18s ease;
}

.forgot-input-group:focus-within {
    border-color: #0784de;
    box-shadow: 0 0 0 4px rgba(4, 118, 217, 0.12);
    background: #ffffff;
}

.forgot-input-group .input-group-text {
    width: 52px;
    flex: 0 0 52px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #0784de;
    padding: 0;
}

.forgot-input-group .form-control {
    min-height: 58px;
    border: 0;
    background: transparent;
    color: #07375f;
    font-size: 15px;
    font-weight: 700;
    box-shadow: none !important;
    padding-left: 0;
    padding-right: 16px;
}

.forgot-input-group .form-control::placeholder {
    color: #8ca9bf;
    font-weight: 600;
}

.forgot-input-group .form-control:focus {
    background: transparent;
}

.forgot-password-page .invalid-feedback {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   BUTTONS / LINKS
========================================================= */

.forgot-submit-btn {
    width: 100%;
    min-height: 56px;
    margin-top: 12px;
    border: 0;
    border-radius: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0476d9, #00b8d9);
    box-shadow: 0 18px 34px rgba(4, 118, 217, 0.28);
    font-size: 15px;
    font-weight: 950;
    transition: 0.18s ease;
}

.forgot-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(4, 118, 217, 0.32);
    color: #ffffff;
}

.forgot-submit-btn:disabled {
    opacity: 0.75;
    transform: none;
    cursor: not-allowed;
}

.forgot-submit-btn .btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.forgot-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 26px 0 18px;
    color: #6f8da6;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.forgot-divider::before,
.forgot-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d5eafa;
}

.forgot-divider span {
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.94);
}

.forgot-back-link {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 18px;
    color: #045eaa;
    background: #edf8ff;
    border: 1px solid #badff8;
    font-size: 15px;
    font-weight: 950;
    text-decoration: none;
    transition: 0.18s ease;
}

.forgot-back-link:hover {
    color: #034f91;
    background: #dff2ff;
    border-color: #8ecdf7;
    text-decoration: none;
    transform: translateY(-1px);
}

/* =========================================================
   FOOTER
========================================================= */

.forgot-footer {
    margin: 22px 0 0;
    text-align: center;
    color: #5f809b;
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   COMPACT LAPTOP
========================================================= */

@media (min-width: 992px) and (max-height: 720px) {
    .forgot-password-page {
        place-items: start center;
        padding-top: 18px;
        padding-bottom: 18px;
        overflow-y: auto;
    }

    .forgot-card {
        padding: 24px 28px;
        border-radius: 26px;
    }

    .forgot-brand {
        margin-bottom: 18px;
    }

    .forgot-brand__logo {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 16px;
    }

    .forgot-brand h1 {
        font-size: 19px;
    }

    .forgot-brand p {
        font-size: 12px;
    }

    .forgot-header {
        margin-bottom: 18px;
    }

    .forgot-kicker {
        margin-bottom: 10px;
        padding: 7px 11px;
        font-size: 12px;
    }

    .forgot-header h2 {
        font-size: 32px;
    }

    .forgot-header p {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.45;
    }

    .forgot-input-group,
    .forgot-input-group .input-group-text,
    .forgot-input-group .form-control {
        min-height: 50px;
    }

    .forgot-input-group .input-group-text {
        height: 50px;
    }

    .forgot-submit-btn {
        min-height: 50px;
        margin-top: 8px;
    }

    .forgot-divider {
        margin: 18px 0 14px;
    }

    .forgot-back-link {
        min-height: 48px;
    }

    .forgot-footer {
        margin-top: 16px;
        font-size: 12px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575.98px) {
    .forgot-password-page {
        align-items: start;
        place-items: start center;
        padding: 18px;
        padding-top: 30px;
        overflow-y: auto;
    }

    .forgot-card {
        padding: 26px 20px;
        border-radius: 24px;
    }

    .forgot-brand {
        gap: 12px;
        margin-bottom: 22px;
    }

    .forgot-brand__logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 16px;
    }

    .forgot-brand h1 {
        font-size: 19px;
    }

    .forgot-brand p {
        font-size: 12px;
    }

    .forgot-header h2 {
        font-size: 31px;
    }

    .forgot-header p {
        font-size: 14px;
    }

    .forgot-input-group {
        min-height: 54px;
        border-radius: 17px;
    }

    .forgot-input-group .input-group-text {
        width: 48px;
        flex-basis: 48px;
        height: 54px;
    }

    .forgot-input-group .form-control {
        min-height: 54px;
        font-size: 14px;
    }

    .forgot-submit-btn {
        min-height: 52px;
        border-radius: 17px;
    }

    .forgot-back-link {
        min-height: 50px;
        border-radius: 17px;
    }

    .forgot-divider {
        font-size: 11px;
    }
}