:root {

    --bg-dark: #03150d;
    --dark: #021c11;
    --dark-2: #062719;

    --primary: #10b981;
    --green-emerald: #059669;
    --accent: #a3e635;

    --primary-light: #6ee7b7;
    --accent-light: #d9f99d;

    --white: #ffffff;

    --muted: #8ba59a;
    --muted-light: #b7c9c1;

    --danger: #f87171;
    --success: #34d399;

    --font-ar:
        "Tajawal",
        "Cairo",
        Arial,
        sans-serif;
}


*,
*::before,
*::after {

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


html {

    scroll-behavior: smooth;

    scrollbar-color:
        var(--primary)
        var(--dark);
}


body {

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    color: var(--white);

    background:

        radial-gradient(
            circle at 15% 15%,
            rgba(16,185,129,.14),
            transparent 28%
        ),

        radial-gradient(
            circle at 85% 80%,
            rgba(163,230,53,.07),
            transparent 25%
        ),

        linear-gradient(
            145deg,
            var(--bg-dark),
            var(--dark) 50%,
            var(--dark-2)
        );

    font-family: var(--font-ar);

    line-height: 1.8;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
}


body::before {

    content: "";

    position: fixed;

    inset: 0;

    z-index: -2;

    pointer-events: none;

    opacity: .18;

    background-image:

        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 65px 65px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );
}


a {

    color: inherit;

    text-decoration: none;
}


button,
input {

    font: inherit;
}


button {

    border: 0;

    cursor: pointer;
}


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

.background-glow {

    position: fixed;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(20px);

    opacity: .7;

    z-index: -1;
}


.glow-one {

    top: -220px;
    right: -120px;

    background:
        radial-gradient(
            circle,
            rgba(16,185,129,.20),
            transparent 70%
        );
}


.glow-two {

    bottom: -230px;
    left: -130px;

    background:
        radial-gradient(
            circle,
            rgba(163,230,53,.11),
            transparent 70%
        );
}


/* =========================
    MAIN CARD
========================= */

.forgot-page {

    width: min(100%, 1080px);

    min-height: 650px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(410px, .78fr);

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.012)
        );

    box-shadow:

        0 40px 120px rgba(0,0,0,.55),

        0 0 70px rgba(16,185,129,.07),

        inset
        0 1px 0
        rgba(255,255,255,.045);

    backdrop-filter: blur(25px);
}


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

.brand-side {

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 55px;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 70% 30%,
            rgba(16,185,129,.16),
            transparent 35%
        ),

        linear-gradient(
            145deg,
            rgba(5,46,27,.85),
            rgba(2,26,16,.96)
        );

    border-left:
        1px solid rgba(255,255,255,.055);
}


.brand-side::before {

    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -100px;
    top: 110px;

    border-radius: 50%;

    border:
        1px solid
        rgba(16,185,129,.12);

    box-shadow:

        0 0 0 35px
        rgba(16,185,129,.025),

        0 0 0 70px
        rgba(16,185,129,.018);
}


.brand-side::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            120deg,
            rgba(255,255,255,.035),
            transparent 35%
        );
}


/* =========================
    LOGO
========================= */

.logo {

    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 12px;

    width: fit-content;
}


.logo-icon {

    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    color: #021c11;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    box-shadow:
        0 10px 35px
        rgba(16,185,129,.25);
}


.logo-icon i {

    font-size: 18px;
}


.logo-text strong,
.logo-text span {

    display: block;
}


.logo-text strong {

    font-size: 17px;

    font-weight: 950;

    letter-spacing: .5px;
}


.logo-text span {

    color: var(--muted);

    font-size: 8px;

    letter-spacing: 2px;
}


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

.brand-content {

    position: relative;

    z-index: 2;

    max-width: 430px;
}


.brand-label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 18px;

    color: var(--accent-light);

    font-size: 11px;

    font-weight: 800;
}


.brand-label i {

    color: var(--primary);

    font-size: 7px;

    filter:
        drop-shadow(
            0 0 8px
            rgba(16,185,129,.7)
        );
}


.brand-content h1 {

    margin-bottom: 18px;

    font-size:
        clamp(34px, 4vw, 50px);

    line-height: 1.2;

    font-weight: 950;

    letter-spacing: -1.5px;
}


.brand-content h1 span {

    display: block;

    color: var(--primary-light);

    text-shadow:
        0 0 35px
        rgba(16,185,129,.15);
}


.brand-content p {

    max-width: 410px;

    color: var(--muted);

    font-size: 13px;

    line-height: 2;
}


/* =========================
    FEATURES
========================= */

.brand-features {

    position: relative;

    z-index: 2;

    display: grid;

    gap: 10px;

    max-width: 390px;
}


.brand-feature {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 11px 13px;

    border:
        1px solid
        rgba(255,255,255,.055);

    border-radius: 13px;

    background:
        rgba(255,255,255,.018);

    transition: .3s ease;
}


.brand-feature:hover {

    transform: translateX(-4px);

    border-color:
        rgba(16,185,129,.16);

    background:
        rgba(16,185,129,.035);
}


.brand-feature-icon {

    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 9px;

    color: var(--accent);

    background:
        rgba(16,185,129,.09);
}


.brand-feature strong {

    display: block;

    font-size: 10px;
}


.brand-feature span {

    display: block;

    color: var(--muted);

    font-size: 8px;
}


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

.forgot-side {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 50px 45px;

    background:
        rgba(1,16,10,.72);
}


.forgot-wrapper {

    width: min(100%, 390px);
}


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

.forgot-header {

    margin-bottom: 25px;

    text-align: right;
}


.mini-label {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 10px;

    color: var(--primary-light);

    font-size: 10px;

    font-weight: 800;
}


.mini-label i {

    font-size: 8px;
}


.forgot-header h2 {

    margin-bottom: 8px;

    font-size: 31px;

    line-height: 1.3;

    font-weight: 950;
}


.forgot-header p {

    color: var(--muted);

    font-size: 11px;

    line-height: 1.9;
}


/* =========================
    METHOD SELECTOR
========================= */

.method-selector {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-bottom: 20px;

    padding: 5px;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius: 15px;

    background:
        rgba(255,255,255,.025);
}


.method-btn {

    min-height: 47px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    color: var(--muted);

    border-radius: 11px;

    background: transparent;

    font-size: 10px;

    font-weight: 800;

    transition: .3s ease;
}


.method-btn i {

    font-size: 13px;
}


.method-btn:hover {

    color: var(--white);

    background:
        rgba(255,255,255,.035);
}


.method-btn.active {

    color: #021c11;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    box-shadow:
        0 7px 20px
        rgba(16,185,129,.15);
}


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

.form-group {

    margin-bottom: 18px;
}


.form-label {

    display: block;

    margin-bottom: 8px;

    color: #c6d5cf;

    font-size: 10px;

    font-weight: 750;
}


.input-wrapper {

    position: relative;
}


.input-wrapper > i {

    position: absolute;

    top: 50%;
    right: 15px;

    transform:
        translateY(-50%);

    color: var(--muted);

    font-size: 12px;

    transition: .3s ease;

    pointer-events: none;
}


.form-input {

    width: 100%;

    height: 54px;

    padding:
        0
        44px
        0
        15px;

    color: var(--white);

    outline: none;

    direction: ltr;

    text-align: left;

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius: 13px;

    background:
        rgba(255,255,255,.035);

    transition:

        border-color .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}


.form-input.phone {

    direction: ltr;

    text-align: left;

    letter-spacing: .3px;
}


.form-input::placeholder {

    color: #627a70;
}


.form-input:focus {

    border-color:
        rgba(16,185,129,.55);

    background:
        rgba(16,185,129,.035);

    box-shadow:
        0 0 0 4px
        rgba(16,185,129,.06);
}


.input-wrapper:focus-within > i {

    color:
        var(--primary-light);
}


/* =========================
    INPUT STATE
========================= */

.form-group.error .form-input {

    border-color:
        rgba(248,113,113,.65);

    background:
        rgba(248,113,113,.025);

    box-shadow:
        0 0 0 4px
        rgba(248,113,113,.045);
}


.form-group.success .form-input {

    border-color:
        rgba(52,211,153,.5);
}


.error-message {

    display: none;

    margin-top: 7px;

    color: var(--danger);

    font-size: 9px;

    line-height: 1.6;
}


.form-group.error .error-message {

    display: block;
}


/* =========================
    HELPER
========================= */

.input-helper {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 8px;

    color: #60796e;

    font-size: 8px;
}


.input-helper i {

    color:
        var(--green-emerald);

    font-size: 9px;
}


/* =========================
    BUTTON
========================= */

.submit-btn {

    width: 100%;

    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    color: #031b11;

    border-radius: 13px;

    background:

        linear-gradient(
            135deg,
            var(--primary),
            var(--green-emerald),
            var(--accent)
        );

    box-shadow:

        0 13px 35px
        rgba(16,185,129,.18);

    font-size: 12px;

    font-weight: 900;

    transition: .3s ease;
}


.submit-btn:hover {

    transform:
        translateY(-3px);

    box-shadow:

        0 18px 45px
        rgba(16,185,129,.30);
}


.submit-btn:active {

    transform:
        translateY(-1px);
}


.submit-btn:disabled {

    opacity: .7;

    cursor: not-allowed;

    transform: none;

    box-shadow:
        0 10px 25px
        rgba(16,185,129,.08);
}


/* =========================
    SUCCESS
========================= */

.success-message {

    display: none;

    margin-top: 15px;

    padding: 13px 14px;

    color: #a7f3d0;

    border:
        1px solid
        rgba(52,211,153,.20);

    border-radius: 12px;

    background:
        rgba(16,185,129,.07);

    font-size: 10px;

    line-height: 1.8;

    animation:
        successIn .35s ease;
}


.success-message i {

    margin-left: 5px;

    color:
        var(--success);
}


@keyframes successIn {

    from {

        opacity: 0;

        transform:
            translateY(6px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================
    BACK LOGIN
========================= */

.back-login {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 23px;

    color: var(--muted);

    font-size: 10px;
}


.back-login a {

    color: var(--accent-light);

    font-weight: 850;

    transition: .25s ease;
}


.back-login a:hover {

    color: var(--accent);
}


/* =========================
    SECURITY
========================= */

.security-note {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 20px;

    color: #637b71;

    font-size: 8px;
}


.security-note i {

    color:
        var(--green-emerald);
}


/* =========================
    RESPONSIVE
========================= */

@media (max-width: 900px) {

    body {

        padding: 20px;
    }


    .forgot-page {

        grid-template-columns: 1fr;

        max-width: 540px;

        min-height: auto;
    }


    .brand-side {

        min-height: 350px;

        padding: 35px;
    }


    .brand-content {

        margin-top: 35px;
    }


    .brand-content h1 {

        font-size: 38px;
    }


    .brand-features {

        display: none;
    }


    .forgot-side {

        padding: 40px 35px;
    }
}


@media (max-width: 560px) {

    body {

        padding: 0;
    }


    .forgot-page {

        width: 100%;

        min-height: 100vh;

        border: 0;

        border-radius: 0;

        box-shadow: none;
    }


    .brand-side {

        min-height: 285px;

        padding: 27px 23px;
    }


    .brand-content {

        margin-top: 25px;
    }


    .brand-content h1 {

        margin-bottom: 10px;

        font-size: 31px;
    }


    .brand-content p {

        font-size: 11px;
    }


    .logo-icon {

        width: 40px;
        height: 40px;
    }


    .logo-text strong {

        font-size: 15px;
    }


    .forgot-side {

        padding:
            35px 23px 45px;
    }


    .forgot-header {

        margin-bottom: 22px;
    }


    .forgot-header h2 {

        font-size: 27px;
    }


    .method-btn {

        min-height: 45px;

        font-size: 9px;
    }
}


@media (max-width: 360px) {

    .brand-side {

        min-height: 260px;
    }


    .brand-content h1 {

        font-size: 27px;
    }


    .form-input {

        height: 50px;
    }


    .submit-btn {

        height: 51px;
    }
}
