/* ============================================================
   Modern Forgot Password Page
   Based on the current MLM Login design
   Desktop : single centered card, NO left promotional panel
   Mobile  : responsive single-screen layout
   ============================================================ */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100%;
}

body {
    background: #f4f6fb !important;
    color: #14213d;
    font-family: "Open Sans", Arial, sans-serif;
}

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

.forgot-page {
    min-height: 100vh;
    width: 100%;
    padding: 35px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 10% 15%, rgba(99,102,241,.08), transparent 25%),
        radial-gradient(circle at 90% 85%, rgba(139,92,246,.07), transparent 25%),
        #f4f6fb;
}

/* Main card */
.forgot-card {
    width: 100%;
    max-width: 500px;
    min-height: 570px;
    padding: 48px 52px 34px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(24,35,63,.12);
}

/* Brand */
.forgot-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #111a32;
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 42px;
}

.forgot-brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #4338ca, #8b5cf6);
    font-size: 20px;
    font-weight: 800;
}

/* Top icon */
.forgot-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #4338ca;
    background: #f0efff;
    font-size: 27px;
    font-weight: 700;
}

.forgot-heading {
    margin: 0;
    color: #14213d;
    font-size: 29px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.6px;
}

.forgot-subheading {
    margin: 10px 0 30px;
    color: #8792a8;
    font-size: 13px;
    line-height: 1.6;
}

/* Error */
.forgot-error {
    width: 100% !important;
    margin: 0 0 16px;
    border-radius: 9px;
}

/* Remove old panel styles */
.forgot-form,
.forgot-form > div {
    width: 100%;
}

.forgot-form {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.forgot-field {
    width: 100%;
    margin: 0 0 24px !important;
}

.forgot-field label {
    display: block;
    margin: 0 0 8px;
    color: #17233f;
    font-size: 12px;
    font-weight: 600;
}

/* Input */
.forgot-input-wrap {
    position: relative;
    width: 100%;
}

.forgot-input-wrap input[type="text"],
.forgot-input-wrap input[type="password"] {
    display: block;
    width: 100% !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 16px 0 48px !important;
    border: 1px solid #dfe4ed !important;
    border-radius: 9px !important;
    outline: none !important;
    background: #fff !important;
    color: #1c2742 !important;
    font-size: 13px !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.forgot-input-wrap input:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79,70,229,.09) !important;
}

.forgot-input-wrap input::placeholder {
    color: #a2adbf;
    opacity: 1;
}

/* User icon */
.forgot-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    opacity: .72;
}

.forgot-user-icon {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7890' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5.5 20c.8-3.6 3-5.4 6.5-5.4s5.7 1.8 6.5 5.4'/%3E%3C/svg%3E");
}

/* Button */
.forgot-submit {
    display: block;
    width: 100% !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #3f35c7, #5d5be9) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 50px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: 0 10px 24px rgba(67,56,202,.20);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.forgot-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(67,56,202,.25);
}

/* Back to login */
.forgot-back {
    margin-top: 28px;
    color: #8792a8;
    font-size: 12px;
    text-align: center;
}

.forgot-back a {
    margin-left: 5px;
    color: #4338ca;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.forgot-back a:hover {
    color: #2e278f;
}

/* Footer */
.forgot-footer {
    margin-top: auto;
    padding-top: 40px;
    color: #a0a8b8;
    font-size: 10px;
    text-align: center;
}

/* Tablet */
@media (max-width: 767px) {

    html,
    body {
        background: #fff !important;
        overflow: hidden !important;
    }

    .forgot-page {
        height: 100dvh;
        min-height: 100dvh;
        padding: 0;
        display: block;
        background: #fff;
        overflow: hidden;
    }

    .forgot-card {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        max-width: none;
        padding: 34px 24px 22px;
        border-radius: 0;
        box-shadow: none;
    }

    .forgot-brand {
        margin-bottom: 34px;
        font-size: 20px;
    }

    .forgot-brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        font-size: 18px;
    }

    .forgot-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 18px;
        border-radius: 14px;
        font-size: 24px;
    }

    .forgot-heading {
        font-size: 27px;
    }

    .forgot-subheading {
        margin-top: 9px;
        margin-bottom: 25px;
        font-size: 12px;
    }

    .forgot-field {
        margin-bottom: 20px !important;
    }

    .forgot-input-wrap input[type="text"],
    .forgot-input-wrap input[type="password"] {
        height: 50px !important;
    }

    .forgot-submit {
        height: 50px !important;
        line-height: 50px !important;
    }

    .forgot-back {
        margin-top: 24px;
    }

    .forgot-footer {
        padding-top: 20px;
    }
}

/* Small phones */
@media (max-width: 380px) {

    .forgot-card {
        padding-left: 19px;
        padding-right: 19px;
        padding-top: 27px;
    }

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

    .forgot-icon {
        margin-bottom: 14px;
    }

    .forgot-heading {
        font-size: 25px;
    }

    .forgot-subheading {
        margin-bottom: 20px;
    }

    .forgot-field {
        margin-bottom: 17px !important;
    }

    .forgot-back {
        margin-top: 19px;
    }
}
