/*==================================================
            AUTH ROOT
==================================================*/

:root{

    --primary:#0f172a;
    --secondary:#111827;

    --gold:#d4af37;
    --gold-light:#f5d77a;

    --white:#ffffff;

    --text:#e5e7eb;

    --muted:#94a3b8;

    --danger:#ef4444;

    --success:#22c55e;

    --glass:rgba(255,255,255,.06);

    --border:rgba(255,255,255,.12);

    --shadow:
    0 25px 70px rgba(0,0,0,.45);

}


/*==================================================
            RESET
==================================================*/

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}


body{

    min-height:100vh;

    font-family:'Cairo',sans-serif;

    background:
    linear-gradient(
        135deg,
        #050816,
        #0b1220,
        #020617
    );

    color:#fff;

    overflow-x:hidden;

}


a{

    text-decoration:none;

    color:var(--gold);

}


button,
input,
select,
textarea{

    font-family:'Cairo',sans-serif;

}



/*==================================================
            BACKGROUND SHAPES
==================================================*/


.bg-shape{

    position:fixed;

    border-radius:50%;

    filter:blur(120px);

    z-index:0;

    opacity:.35;

}


.bg1{

    width:500px;

    height:500px;

    background:#d4af37;

    top:-150px;

    right:-150px;

}


.bg2{

    width:450px;

    height:450px;

    background:#2563eb;

    bottom:-150px;

    left:-150px;

}



/*==================================================
            AUTH PAGE
==================================================*/


.auth-page{

    min-height:100vh;

    width:100%;

    display:grid;

    grid-template-columns:1fr 500px;

    align-items:center;

    gap:70px;

    padding:50px 7%;

    position:relative;

    z-index:2;

}



/*==================================================
            INFO SIDE
==================================================*/


.auth-info{

    max-width:560px;

}


.auth-info .logo{

    display:inline-block;

    font-size:38px;

    font-weight:900;

    color:var(--gold);

    margin-bottom:45px;

}


.badge{

    display:inline-flex;

    padding:8px 20px;

    border-radius:50px;

    background:rgba(212,175,55,.12);

    color:var(--gold);

    border:1px solid rgba(212,175,55,.3);

    font-weight:700;

    margin-bottom:25px;

}


.auth-info h1{

    font-size:55px;

    line-height:1.4;

    margin-bottom:20px;

}


.auth-info p{

    font-size:19px;

    color:var(--muted);

    line-height:2;

    margin-bottom:40px;

}



.info-list{

    display:flex;

    flex-direction:column;

    gap:20px;

}


.info-item{

    display:flex;

    align-items:center;

    gap:18px;

    font-size:18px;

    color:#e5e7eb;

}


.info-item i{

    width:55px;

    height:55px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:rgba(212,175,55,.15);

    color:var(--gold);

    font-size:22px;

}



/*==================================================
            AUTH CARD
==================================================*/


.auth-card{

    background:

    rgba(255,255,255,.06);

    border:

    1px solid rgba(255,255,255,.12);

    backdrop-filter:blur(25px);

    border-radius:30px;

    padding:40px;

    box-shadow:var(--shadow);

    width:100%;

    animation:cardShow .8s ease;

}


@keyframes cardShow{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}



.card-header{

    text-align:center;

    margin-bottom:35px;

}


.card-header h2{

    font-size:34px;

    margin-bottom:10px;

}


.card-header p{

    color:var(--muted);

}



/*==================================================
            INPUTS
==================================================*/


.input-group{

    margin-bottom:22px;

}


.input-group label{

    display:block;

    margin-bottom:10px;

    font-weight:700;

}


.input-box{

    position:relative;

    display:flex;

    align-items:center;

}


.input-box i{

    position:absolute;

    right:18px;

    color:var(--gold);

    font-size:18px;

}


.input-box input,
.input-box select{

    width:100%;

    height:55px;

    background:rgba(255,255,255,.05);

    border:1px solid var(--border);

    border-radius:15px;

    color:#fff;

    padding:

    0 50px 0 45px;

    outline:none;

    transition:.3s;

}


.input-box input::placeholder{

    color:#94a3b8;

}


.input-box input:focus,
.input-box select:focus{

    border-color:var(--gold);

    box-shadow:

    0 0 20px rgba(212,175,55,.15);

}


.input-box select option{

    color:#111;

}



/*==================================================
            PASSWORD TOGGLE
==================================================*/


.toggle-password{

    position:absolute;

    left:15px;

    background:none;

    color:#94a3b8;

    font-size:18px;

}


.toggle-password:hover{

    color:var(--gold);

}



/*==================================================
            BUTTON
==================================================*/


.submit-btn{

    width:100%;

    height:58px;

    border-radius:16px;

    background:

    linear-gradient(
        135deg,
        var(--gold),
        var(--gold-light)
    );

    color:#111;

    font-size:18px;

    font-weight:900;

    position:relative;

    overflow:hidden;

    margin-top:20px;

    transition:.3s;

}


.submit-btn:hover{

    transform:translateY(-3px);

    box-shadow:

    0 15px 35px rgba(212,175,55,.3);

}



/*==================================================
            LOADER
==================================================*/


.loader{

    display:none;

    width:22px;

    height:22px;

    border:3px solid #111;

    border-top-color:transparent;

    border-radius:50%;

    animation:spin .8s linear infinite;

    margin:auto;

}


@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}


.submit-btn.loading span{

    display:none;

}


.submit-btn.loading .loader{

    display:block;

}

/*==================================================
            SOCIAL LOGIN
==================================================*/

.divider{

    display:flex;

    align-items:center;

    gap:15px;

    margin:30px 0;

    color:var(--muted);

}


.divider::before,
.divider::after{

    content:"";

    height:1px;

    background:rgba(255,255,255,.15);

    flex:1;

}


.divider span{

    font-size:14px;

}


.social-login{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:15px;

}


.social-login button{

    height:50px;

    border-radius:14px;

    background:rgba(255,255,255,.06);

    border:1px solid var(--border);

    color:#fff;

    font-weight:700;

    transition:.3s;

}


.social-login button i{

    margin-left:8px;

}


.social-login button:hover{

    transform:translateY(-3px);

    border-color:var(--gold);

}


.google i{

    color:#ea4335;

}


.apple i{

    color:#fff;

}



/*==================================================
            OPTIONS
==================================================*/


.options{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin:20px 0;

    font-size:14px;

}


.remember{

    display:flex;

    align-items:center;

    gap:8px;

    cursor:pointer;

}


.remember input{

    width:16px;

    height:16px;

    accent-color:var(--gold);

}


.options a:hover{

    text-decoration:underline;

}



/*==================================================
            BOTTOM TEXT
==================================================*/


.bottom-text{

    text-align:center;

    margin-top:30px;

    color:var(--muted);

}


.bottom-text a{

    font-weight:800;

}



/*==================================================
            SIGNUP CARD
==================================================*/


.signup-card{

    max-width:600px;

    margin:auto;

}


.signup-page{

    display:flex;

    justify-content:center;

    padding:60px 20px;

}



/*==================================================
            AVATAR UPLOAD
==================================================*/


.avatar-upload{

    text-align:center;

    margin-bottom:30px;

}


.avatar-upload label{

    position:relative;

    display:inline-block;

    cursor:pointer;

}


.avatar-upload img{

    width:110px;

    height:110px;

    border-radius:50%;

    object-fit:cover;

    border:4px solid var(--gold);

    padding:3px;

}


.camera{

    position:absolute;

    bottom:5px;

    left:5px;

    width:35px;

    height:35px;

    background:var(--gold);

    color:#111;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

}


.avatar-upload span{

    display:block;

    color:var(--muted);

    margin-top:12px;

    font-size:14px;

}



/*==================================================
            GENDER
==================================================*/


.gender-box{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:15px;

}


.gender-option input{

    display:none;

}


.gender-option span{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    height:55px;

    background:rgba(255,255,255,.05);

    border:1px solid var(--border);

    border-radius:15px;

    cursor:pointer;

    transition:.3s;

}


.gender-option span i{

    color:var(--gold);

}


.gender-option input:checked + span{

    background:rgba(212,175,55,.15);

    border-color:var(--gold);

}



/*==================================================
            TEXTAREA
==================================================*/


textarea{

    width:100%;

    resize:none;

    background:rgba(255,255,255,.05);

    border:1px solid var(--border);

    border-radius:15px;

    padding:18px;

    color:#fff;

    outline:none;

    line-height:1.8;

}


textarea:focus{

    border-color:var(--gold);

}


.char-counter{

    text-align:left;

    color:var(--muted);

    font-size:13px;

    margin-top:5px;

}



/*==================================================
            PASSWORD STRENGTH
==================================================*/


.password-strength{

    width:100%;

    height:7px;

    background:rgba(255,255,255,.1);

    border-radius:20px;

    margin-top:12px;

    overflow:hidden;

}


.strength-bar{

    width:0%;

    height:100%;

    background:#ef4444;

    transition:.4s;

}


#strengthText{

    display:block;

    color:var(--muted);

    margin-top:8px;

}



/*==================================================
            INTEREST TAGS
==================================================*/


.tags{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}


.tags label{

    cursor:pointer;

}


.tags input{

    display:none;

}


.tags label{

    padding:10px 18px;

    border-radius:30px;

    background:rgba(255,255,255,.05);

    border:1px solid var(--border);

    transition:.3s;

}


.tags input:checked + *{

    background:var(--gold);

}



.tags label:hover{

    border-color:var(--gold);

}



/*==================================================
            ERROR MESSAGE
==================================================*/


.error{

    display:block;

    color:#f87171;

    margin-top:7px;

    font-size:13px;

    min-height:15px;

}



/*==================================================
            RESPONSIVE
==================================================*/


@media(max-width:1050px){


    .auth-page{

        grid-template-columns:1fr;

        justify-items:center;

        padding-top:80px;

    }


    .auth-info{

        text-align:center;

        max-width:650px;

    }


    .info-list{

        align-items:center;

    }


}



@media(max-width:600px){


    .auth-page{

        padding:30px 15px;

    }


    .auth-card{

        padding:25px 20px;

        border-radius:22px;

    }


    .auth-info h1{

        font-size:36px;

    }


    .auth-info p{

        font-size:16px;

    }


    .card-header h2{

        font-size:27px;

    }


    .social-login{

        grid-template-columns:1fr;

    }


    .gender-box{

        grid-template-columns:1fr;

    }


    .options{

        flex-direction:column;

        gap:15px;

        align-items:flex-start;

    }


}



@media(max-width:380px){


    .auth-card{

        padding:20px 15px;

    }


    .input-box input,
    .input-box select{

        height:50px;

    }


}

/*=====================================
        Phone Input
======================================*/

.iti{

    width:100%;

}


.iti input{

    width:100% !important;

    height:55px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.12);

    border-radius:15px;

    color:#fff;

    padding-right:55px !important;

}


.iti input:focus{

    border-color:#d4af37;

    box-shadow:0 0 18px rgba(212,175,55,.2);

}


.iti__selected-country{

    background:transparent !important;

}


.iti__country-list{

    background:#0f172a;

    color:#fff;

    border:1px solid rgba(255,255,255,.12);

}


.iti__country:hover{

    background:#1e293b;

}

/* ==========================
   RTL Phone Input Fix
========================== */

.iti{

    width:100%;
    direction: rtl;

}

.iti--allow-dropdown input,
.iti--separate-dial-code input{

    width:100% !important;

    padding-right:110px !important; /* مساحة للعلم والرمز */
    padding-left:15px !important;

}

.iti__country-container{

    right:0 !important;
    left:auto !important;

}

.iti__selected-country{

    right:0 !important;
    left:auto !important;

    padding:0 15px 0 10px !important;

    border-radius:15px 0 0 15px;
}

.iti__country-list{

    right:0 !important;
    left:auto !important;

    text-align:right;
}