@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body.login-page,
body.register-page{

    font-family:'Cairo',sans-serif;

    background:
    linear-gradient(
        135deg,
        #0f172a 0%,
        #1e3a8a 45%,
        #2563eb 100%
    );

    min-height:100vh;

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

    direction:rtl;

    padding:20px;
}

/* =========================
   MAIN BOX
========================= */

.login-box{

    width:100%;
    max-width:1400px;

    min-height:760px;

    background:#ffffff;

    border-radius:30px;

    overflow:hidden;

    display:flex;

    box-shadow:
    0 15px 40px rgba(0,0,0,0.15);
}

/* =========================
   LEFT SIDE
========================= */

.left-content{

    width:50%;

    background:
    linear-gradient(
        180deg,
        #f8fbff 0%,
        #eef4ff 100%
    );

    display:flex;
    flex-direction:column;

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

    text-align:center;

    padding:60px;
}

.left-content img{
    width:160px;
    margin-bottom:25px;
}

.left-content h1{

    font-size:64px;

    color:#0f172a;

    margin-bottom:25px;

    font-weight:800;
}

.left-content h2{

    font-size:44px;

    color:#0f172a;

    margin-bottom:15px;

    font-weight:800;
}

.left-content p{

    font-size:28px;

    line-height:1.9;

    color:#374151;

    max-width:550px;
}

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

.form-side{

    width:50%;

    background:#ffffff;

    padding:70px;

    display:flex;
    flex-direction:column;
    justify-content:center;
}

.form-side h2{

    font-size:72px;

    color:#0f172a;

    margin-bottom:10px;

    font-weight:800;
}

.form-side p{

    font-size:22px;

    color:#6b7280;

    margin-bottom:35px;
}

/* =========================
   INPUTS
========================= */

input{

    width:100%;

    height:78px;

    border-radius:22px;

    border:2px solid #e5e7eb;

    background:#ffffff;

    padding:0 25px;

    font-size:24px;

    margin-bottom:25px;

    transition:.3s;
}

input:focus{

    outline:none;

    border-color:#3b82f6;

    box-shadow:
    0 0 0 4px rgba(59,130,246,0.10);
}

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

button{

    width:100%;

    height:78px;

    border:none;

    border-radius:22px;

    background:
    linear-gradient(
        90deg,
        #2563eb 0%,
        #3b82f6 100%
    );

    color:#ffffff;

    font-size:28px;

    font-weight:700;

    cursor:pointer;

    margin-top:10px;

    transition:.3s;
}

button:hover{
    transform:translateY(-2px);
}

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

.form-links,
.extra-links{

    text-align:center;

    margin-top:20px;

    font-size:22px;
}

.form-links a,
.extra-links a{

    color:#2563eb;

    text-decoration:none;

    font-weight:700;
}

/* =========================
   DIVIDER
========================= */

.divider{

    display:flex;

    align-items:center;

    gap:20px;

    margin:35px 0;
}

.divider::before,
.divider::after{

    content:"";

    flex:1;

    height:2px;

    background:#e5e7eb;
}

.divider span{

    color:#6b7280;

    font-size:22px;

    font-weight:700;
}

/* =========================
   SOCIAL BUTTONS
========================= */

.social-btn{

    width:100%;

    height:76px;

    border-radius:22px;

    border:2px solid #e5e7eb;

    background:#ffffff;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:15px;

    font-size:26px;

    font-weight:700;

    margin-bottom:18px;

    cursor:pointer;

    text-decoration:none;

    color:#111827;

    transition:.3s;
}

.social-btn:hover{

    transform:translateY(-2px);

    border-color:#3b82f6;
}

.social-btn img{
    width:34px;
}

.facebook-btn{

    background:
    linear-gradient(
        90deg,
        #1e40af 0%,
        #3b82f6 100%
    );

    color:#ffffff;

    border:none;
}

/* =========================
   ALERTS
========================= */

.error-box,
.success-box{

    padding:18px;

    border-radius:18px;

    margin-bottom:20px;

    font-size:18px;
}

.error-box{

    background:#fee2e2;

    color:#b91c1c;
}

.success-box{

    background:#dcfce7;

    color:#166534;
}

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

@media(max-width:992px){

    .login-box{

        flex-direction:column;
    }

    .left-content,
    .form-side{

        width:100%;
    }

    .left-content{

        background:
        linear-gradient(
            180deg,
            #1d4ed8 0%,
            #1e40af 100%
        );

        padding:50px 30px;
    }

    .left-content h1,
    .left-content h2,
    .left-content p{

        color:#ffffff;
    }

    .left-content img{
        width:100px;
    }

    .left-content h1{
        font-size:42px;
    }

    .left-content h2{
        font-size:32px;
    }

    .left-content p{
        font-size:20px;
    }

    .form-side{

        padding:40px 25px;
    }

    .form-side h2{

        font-size:48px;

        text-align:center;
    }

    .form-side p{

        text-align:center;

        font-size:18px;
    }

    input{

        height:62px;

        font-size:18px;
    }

    button{

        height:62px;

        font-size:22px;
    }

    .social-btn{

        height:62px;

        font-size:18px;
    }

    .divider span,
    .form-links,
    .extra-links{

        font-size:18px;
    }
}
/* =========================
   PASSWORD TOGGLE
========================= */

.password-box{
    position:relative;
    width:100%;
}

.password-box input{
    padding-left:65px;
}

/* BUTTON */

.toggle-password{

    position:absolute;

    left:18px;

    top:50%;

    transform:translateY(-50%);

    border:none;

    background:transparent;

    width:auto;

    height:auto;

    padding:0;

    margin:0;

    cursor:pointer;

    color:#9ca3af;

    display:flex;

    align-items:center;

    justify-content:center;

    z-index:10;
}

/* HOVER */

.toggle-password:hover{

    color:#2563eb;

    background:transparent;

    transform:translateY(-50%);
}

/* SVG */

.toggle-password svg{

    width:24px;

    height:24px;

    stroke-width:2.2;

    transition:.3s;
}
/* =========================
   VERIFY POPUP
========================= */

.popup{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.75);

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

    z-index:99999;

    padding:20px;
}

.popup-box{

    width:100%;
    max-width:520px;

    background:#ffffff;

    border-radius:28px;

    padding:35px;

    box-shadow:
    0 25px 60px rgba(0,0,0,.25);

    text-align:center;
}

.popup-box h3{

    font-size:32px;

    color:#0f172a;

    margin-bottom:20px;
}

.verify-email-text{

    font-size:18px;

    color:#4b5563;

    margin-bottom:15px;

    line-height:1.8;
}

.edit-email{

    display:inline-block;

    color:#2563eb;

    font-weight:700;

    text-decoration:none;

    margin-bottom:20px;
}

.resend-btn{

    background:
    linear-gradient(
        90deg,
        #1d4ed8 0%,
        #2563eb 100%
    );
}

@media(max-width:768px){

    .popup-box{

        padding:25px;

        border-radius:20px;
    }

    .popup-box h3{

        font-size:24px;
    }

    .verify-email-text{

        font-size:16px;
    }
}