
     @media (max-width: 650px) {
        .ul-content {
          margin-bottom: 100px !important;
          padding: 20px !important;
        }
        .acount-span-personal{
            width: 100% !important;
        }

#popup_login{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(700px, 90vw);     /* اندازه مطلوب شما; قابل تغییر است */
    max-height: 80vh;              /* جلوگیری از خروج از قاب صفحه */
    overflow: auto;                  /* در صورت نیاز به اسکرول */
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    height: 700px;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
    z-index: 10000;
    display: none;
    text-align: center;

}

#popup_login h3{
    color: darkblue;
    font-weight: 600;
    font-size: 17px;
}
#login_or_register{
    width: 100%;
    height: 60px;
    float: right;
}
/* استایل پایه برای لینک‌ها */
#a_login, #a_register {
    float: right;
    color: darkblue;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    display: inline-block;
    padding: 4px 8px;
    text-decoration: none;
    /* ایجاد فضای لازم برای نوارها */
    z-index: 0;
}



/* استایل پایه مربوط به لینک‌ها */
#a_login, #a_register {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    color: darkblue;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    width: 80px;
    /* نور را روی خط متن می‌افتد، خط را پشت متن نگه داریم */
    overflow: visible;
}

#a_register{
    margin-right: 30px;
}

#a_login .label,
#a_register .label {
    position: relative;
    z-index: 1; /* متن بالاتر از خط باشد تا خوانا بماند */
}

/* خط طلایی که از راست به چپ می‌گذرد */
#a_login::after,
#a_register::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;              /* خط در پایین تگ قرار می‌گیرد */
    height: 2px;              /* ضخامت خط */
    width: 0;
    background: gold;       /* رنگ طلایی */
    transform-origin: right;   /* از سمت راست آغاز شود */
    /* توسط حالت عادی نامرئی است */

    z-index: 0;                   /* خط پشت متن باشد */
    pointer-events: none;
    display: block;
    transition: transform 1s ease
}

/* فعال شدن خط فقط در حالت Hover */
#a_login:hover::after,
#a_register:hover::after {
    width: 100% !important;      /* از راست به چپ across می‌شود */
}

#section_login{
    width: 100%;
    margin-top: 15px;
    float: right;
}
.div_userphone{
    width: 100%;
    float: right;
}

.div_userphone i {
    float: right;
    margin-left: 5px;

}
.div_userphone p{
    float: right;
    font-size: 14px;
    color: black;
    line-height: 13px;
    min-width: 100px;
    text-align: right;
}
.div_userphone input{
    float: right;
    width: 50%;
    border: none;
    border-bottom: 1px solid gold;
    height: 40px;
    box-decoration-break: clone;
    margin-right: 15px;
    outline: none;
    appearance: none;
    box-shadow: none;
    padding: 0 20px;
}
.ico_login_phon{
    width: 25px;
    height: 25px;
    display: block;
    line-height: 51px;
    margin-left: 12px;
}
.btn_login{
    width: 100%;
    float: right;
    margin-top: 40px;
}


.image_login{
    width: 100%;
    float: right;
}
.image_login img{
    margin: 0 auto;
    width: 150px;
    height: 150px;
}

.a_btn_sendcode{
    width: auto;
    padding: 5px 15px;
    line-height: 14px;
    cursor: pointer;
    border-radius: 5px;
    background: #3cc;
    color: white;
    font-family: "B Yekan";
    font-size: 15px;
    font-weight: 700;
    position: relative;

}
.a_btn_sendcode::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(100%);
    transition: transform 1s ease;
    pointer-events: none;
}
.a_btn_sendcode:hover::after,
.a_btn_sendcode:focus-visible::after {
    transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
    .a_btn_sendcode::after {
        transition: none;
        transform: translateX(0);
    }
}




.a_btn_checked_code,.a_btn_checked_code_register{
    width: auto;
    padding: 5px 15px;
    line-height: 14px;
    cursor: pointer;
    border-radius: 5px;
    background: gold;
    color: white;
    font-family: "B Yekan";
    font-size: 15px;
    font-weight: 700;
    position: relative;

}
.a_btn_checked_code::after,.a_btn_checked_code_register::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(100%);
    transition: transform 1s ease;
    pointer-events: none;
}
.a_btn_checked_code:hover::after,
.a_btn_checked_code:focus-visible::after {
    transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
    .a_btn_checked_code::after {
        transition: none;
        transform: translateX(0);
    }
}





.a_btn_checked_code_register:hover::after,
.a_btn_checked_code_register:focus-visible::after {
    transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
    .a_btn_checked_code_register::after {
        transition: none;
        transform: translateX(0);
    }
}


.a_btn_resend_code,.a_btn_resend_code_register {
    width: auto;
    padding: 5px 15px;
    line-height: 23px;
    cursor: pointer;
    border-radius: 5px;
    background: gold;
    color: white;
    font-family: "B Yekan";
    font-size: 15px;
    font-weight: 700;
    position: relative;
    float: left;
    height: 24px;
}

.a_btn_resend_code::after,.a_btn_resend_code_register::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(100%);
    transition: transform 1s ease;
    pointer-events: none;
}
.a_btn_resend_code:hover::after,
.a_btn_resend_code:focus-visible::after {
    transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
    .a_btn_resend_code::after {
        transition: none;
        transform: translateX(0);
    }
}
.a_btn_resend_code_register:hover::after,
.a_btn_resend_code_register:focus-visible::after {
    transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
    .a_btn_resend_code_register::after {
        transition: none;
        transform: translateX(0);
    }
}
#login_container_phone{
    width: 100%;
    float: right;
}

.otp-inputs,.otp-inputs_register {
    display: inline-flex;
    gap: 8px;
    margin-top: 60px;
    direction: ltr;
}
.otp-digit,.otp-digit_register {
    width: 40px !important;
    height: 40px !important;
    text-align: center;
    font-size: 1.25em;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0 !important;
    background: #f7f1e570;
}
.otp-digit:focus,.otp-digit_register:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74,144,226,.25);
}




#phoneError{
    color: rgb(217, 48, 37);
    font-size: 0.92em;
    margin-top: 6px;
    display: block;
    width: 100%;
    float: right;
    margin-top: 19px;
    font-size: 12px;

}
/* محتوای خطا در کنار ورودی‌ها (یا به صورت مستقل) */
#phoneError, #codeError {
    color: #d93025;
    font-size: 0.92em;
    margin-top: 6px;
    display: none;
}
.auth-tab {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    background: transparent;
    cursor: pointer;
}
.auth-tab.active {
    background: #f5c542; /* طلایی */
    color: #fff !important;
}
.auth-panel {
    display: block;
}
#close_container_login{
    width: 40px;
    height: 40px;
    display: block;
    float: left;
    cursor: pointer;

}


.a_btn_sendcode_register{
    width: auto;
    padding: 5px 15px;
    line-height: 14px;
    cursor: pointer;
    border-radius: 5px;
    background: #3cc;
    color: white;
    font-family: "B Yekan";
    font-size: 15px;
    font-weight: 700;
    position: relative;

}
.a_btn_sendcode_register::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(100%);
    transition: transform 1s ease;
    pointer-events: none;
}
.a_btn_sendcode_register:hover::after,
.a_btn_sendcode_register:focus-visible::after {
    transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
    .a_btn_sendcode_register::after {
        transition: none;
        transform: translateX(0);
    }}
.resend_backto{
    width: 100%;
    float: right;
    height: 80px;
}
.resend_code {
    float: left;
    margin-left: 10px;
    font-size: 13px;
    color: #4a8cdb;
    line-height: 37px;
    cursor: pointer;
    margin-right: 5px;
}
#login-timer,#register-timer{
    float: left;
    color: #4a8cdb;
    font-size:12px;
}
#login-status{
    margin-top: 8px;
    font-size: 11px;
    margin-bottom: 40px;
}
.edit_phone_number{
    float: right;
    font-size: 14px;
    color: blue;
    cursor: pointer;
}
.edit_phone_number_register{
    float: right;
    font-size: 14px;
    color: blue;
    cursor: pointer;
}
#section_register  .div_userphone{
    margin-top: 15px;
}
#register_container_phone{
    float: right;
    padding-bottom: 50px;
}
.otp-digit_register.filled,.otp-digit {
    background-color: #f1e7d0; /* سبز روشن */
    color: #fff;
    border-color: gold;
}
#authStatus_register,#authStatus_register2{
    color: red;
    background: #f7f7f691;
    text-align: center;
    float: right;
    width: 100%;
    font-size: 13px;
    padding: 40px 0;
    margin-top: 20px;
    border-radius: 5px;
    border: 1px solid;
    display: none;
}


#authStatus_register_success,#authStatus_register_success_sendcode,
#authStatus_login_success_sendcode,#authStatus_Login_success {
    color: green;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    /* مرکزیت دقیق */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* ابعاد و ظاهر */
    padding: 14px 32px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.15);
    font-weight: 700;
    font-size: 16px;
    z-index: 9999;

    /* محدود کردن اندازه و مخفی شدن پیش‌فرض */
    min-width: 280px;
    max-width: 90vw;
    display: none;
    width: 100%;
    height: 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
#authStatus,#authStatus-re{

    display: none;
    font-size: 13px;
    color: red;
    background: #f7f7f691;
    text-align: center;
    float: right;
    width: 100%;
    padding: 40px 0;
    margin-top: 20px;
    border-radius: 5px;
    border: 1px solid;
}
#phoneError{

    display: none;
    color: red;
    font-size: 13px!important;
    background: #f7f7f691;
    text-align: center;
    float: right;
    width: 100%;
    padding: 40px 0;
    margin-top: 25px !important;
    border-radius: 5px;
    border: 1px solid;

}
.resend_backto{
    width: 100%;
    float: right;
    height: 80px;
}
.resend_code {
    float: left;
    margin-left: 10px;
    font-size: 13px;
    color: #4a8cdb;
    line-height: 37px;
    cursor: pointer;
    margin-right: 5px;
}

#login-status,#register-status{
    margin-top: 8px;
    font-size: 11px;
    margin-bottom: 40px;
}
.edit_phone_number{
    float: right;
    font-size: 14px;
    color: blue;
    cursor: pointer;
}
    .otp-digit.filled {
    background-color: #e9f6f6; /* سبز روشن */
    color: #fff;
    border-color: #3cc;
}



