


* {
    box-sizing: border-box;
}


/* =========================
   الصفحة
========================= */

.forgot-page {

    min-height: calc(100vh - 80px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 45px 20px;

    background:
        radial-gradient(
            circle at top right,
            rgba(99, 102, 241, .10),
            transparent 30%
        ),

        radial-gradient(
            circle at bottom left,
            rgba(59, 130, 246, .08),
            transparent 30%
        ),

        #f8fafc;
}


.forgot-wrapper {

    width: 100%;

    max-width: 1000px;

    min-height: 600px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    background: #fff;

    border-radius: 28px;

    overflow: hidden;

    border: 1px solid #eef2f7;

    box-shadow:
        0 25px 70px rgba(15, 23, 42, .10);
}


/* =========================
   الجانب التعريفي
========================= */

.forgot-intro {

    position: relative;

    padding: 55px;

    display: flex;

    align-items: center;

    color: white;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(255,255,255,.16),
            transparent 25%
        ),

        radial-gradient(
            circle at 10% 90%,
            rgba(255,255,255,.10),
            transparent 30%
        ),

        linear-gradient(
            145deg,
            #111827,
            #1e293b 55%,
            #312e81
        );
}


.forgot-intro::before {

    content: "";

    position: absolute;

    width: 270px;

    height: 270px;

    border-radius: 50%;

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

    right: -100px;

    top: -90px;
}


.forgot-intro::after {

    content: "";

    position: absolute;

    width: 190px;

    height: 190px;

    border-radius: 50%;

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

    left: -85px;

    bottom: -75px;
}


.intro-content {

    position: relative;

    z-index: 2;

    max-width: 430px;
}


.intro-logo {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 48px;

    font-size: 21px;
}


.intro-logo span {

    width: 43px;

    height: 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

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

    backdrop-filter: blur(10px);

    font-size: 22px;
}


.intro-logo strong {
    font-size: 22px;
}


.intro-icon {

    width: 62px;

    height: 62px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 20px;

    border-radius: 18px;

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

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

    font-size: 28px;
}


.forgot-intro h1 {

    margin: 0 0 18px;

    font-size: 38px;

    line-height: 1.3;

    font-weight: 800;
}


.forgot-intro > .intro-content > p {

    margin: 0;

    color: rgba(255,255,255,.72);

    font-size: 15px;

    line-height: 2;
}


/* =========================
   الخطوات
========================= */

.intro-steps {

    margin-top: 42px;

    display: flex;

    flex-direction: column;

    gap: 22px;
}


.intro-step {

    display: flex;

    align-items: center;

    gap: 14px;
}


.step-number {

    width: 40px;

    height: 40px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

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

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

    font-size: 13px;

    font-weight: 800;
}


.intro-step div:last-child {

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.intro-step strong {
    font-size: 13px;
}


.intro-step span {

    font-size: 11px;

    color: rgba(255,255,255,.58);
}


/* =========================
   البطاقة
========================= */

.forgot-card {

    padding: 55px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.forgot-header {

    margin-bottom: 30px;
}


.mobile-icon {

    display: none;
}


.forgot-header h2 {

    margin: 0 0 9px;

    color: #111827;

    font-size: 29px;

    font-weight: 800;
}


.forgot-header p {

    margin: 0;

    max-width: 360px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.8;
}


/* =========================
   Form
========================= */

.form-group {

    margin-bottom: 10px;
}


.form-group label {

    display: block;

    margin-bottom: 8px;

    color: #334155;

    font-size: 13px;

    font-weight: 700;
}


.input-wrapper {

    position: relative;
}


.input-icon {

    position: absolute;

    right: 15px;

    top: 50%;

    transform: translateY(-50%);

    font-size: 17px;

    pointer-events: none;

    opacity: .7;
}


.input-wrapper input {

    width: 100%;

    height: 52px;

    border: 1px solid #e2e8f0;

    border-radius: 13px;

    outline: none;

    padding: 0 46px;

    background: #f8fafc;

    color: #0f172a;

    font-size: 14px;

    transition: .2s ease;
}


.input-wrapper input::placeholder {
    color: #94a3b8;
}


.input-wrapper input:focus {

    background: white;

    border-color: #6366f1;

    box-shadow:
        0 0 0 4px rgba(99,102,241,.08);
}


.input-wrapper input.input-error {

    border-color: #ef4444;

    background: #fffafa;
}


.error-message {

    display: block;

    min-height: 18px;

    margin-top: 5px;

    color: #dc2626;

    font-size: 11px;
}


/* =========================
   الزر
========================= */

.reset-button {

    width: 100%;

    height: 53px;

    margin-top: 8px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #4f46e5
        );

    color: white;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    position: relative;

    transition: .2s ease;

    box-shadow:
        0 8px 20px rgba(79,70,229,.20);
}


.reset-button:hover {

    transform: translateY(-1px);

    box-shadow:
        0 12px 25px rgba(79,70,229,.28);
}


.reset-button:active {
    transform: translateY(0);
}


.reset-button.loading {

    pointer-events: none;

    opacity: .8;
}


.button-loader {

    display: none;

    width: 18px;

    height: 18px;

    border: 2px solid rgba(255,255,255,.4);

    border-top-color: white;

    border-radius: 50%;

    animation: spin .7s linear infinite;

    position: absolute;

    left: 50%;

    top: 50%;

    transform: translate(-50%, -50%);
}


.reset-button.loading .button-text {
    visibility: hidden;
}


.reset-button.loading .button-loader {
    display: block;
}


@keyframes spin {

    to {

        transform:
            translate(-50%, -50%)
            rotate(360deg);
    }
}


/* =========================
   رسالة
========================= */

.form-message {

    margin-bottom: 18px;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 12px;

    line-height: 1.8;
}


.form-message.success {

    display: block;

    background: #ecfdf5;

    color: #047857;

    border: 1px solid #a7f3d0;
}


.form-message.error {

    display: block;

    background: #fef2f2;

    color: #b91c1c;

    border: 1px solid #fecaca;
}


/* =========================
   العودة
========================= */

.back-login {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 25px;

    color: #475569;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: .2s;
}


.back-login span {

    font-size: 17px;

    transition: .2s;
}


.back-login:hover {
    color: #4f46e5;
}


.back-login:hover span {
    transform: translateX(4px);
}


/* =========================
   إنشاء حساب
========================= */

.register-link {

    margin-top: 24px;

    padding-top: 22px;

    border-top: 1px solid #eef2f7;

    display: flex;

    justify-content: center;

    gap: 5px;

    color: #64748b;

    font-size: 12px;
}


.register-link a {

    color: #4f46e5;

    text-decoration: none;

    font-weight: 700;
}


.register-link a:hover {
    text-decoration: underline;
}


/* =========================
   Responsive
========================= */

@media (max-width: 850px) {

    .forgot-wrapper {

        max-width: 560px;

        grid-template-columns: 1fr;
    }


    .forgot-intro {
        display: none;
    }


    .forgot-card {
        padding: 45px;
    }


    .mobile-icon {

        width: 48px;

        height: 48px;

        display: flex;

        align-items: center;

        justify-content: center;

        margin-bottom: 18px;

        border-radius: 14px;

        background: #eef2ff;

        font-size: 22px;
    }

}


@media (max-width: 500px) {

    .forgot-page {

        min-height: calc(100vh - 65px);

        padding: 15px 10px;
    }


    .forgot-wrapper {

        border-radius: 20px;

        min-height: auto;
    }


    .forgot-card {

        padding: 30px 20px;
    }


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


    .register-link {

        flex-direction: column;

        align-items: center;
    }

}
