
.hidden-csl-chat {
    display: none !important;
}
.csp-login-register-btn{
    all: unset;
    cursor: pointer;
}
/*
span#timer_login_csp{
 font-size: 18px;
 font-weight: bold;
 background: red;
 border-radius: 50%;
 padding: 7px 10px;
 margin: 10px;
 color: wheat;
}*/
.ms-login-container {
    max-width: 500px;
    margin: 0 auto;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    z-index:999999;
    

}
.ms-login-container#csp-modal{
    position:fixed !important;
}



.form.csp-form {
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 20px;
}

.form input.csp-form-input {
    background-color: #e3e3e3;
    border-radius: 10px !important;
    width: 100%;
    border: 0 !important;
    padding: 10px !important;
    margin: 10px 0;
}

.title-form.csp-form-title {
    font-size: 22px;
    text-align: center;
}

@keyframes TransitioningBackground {
    0% {
        background-position: 1% 0%;
    }

    50% {
        background-position: 99% 100%;
    }

    100% {
        background-position: 1% 0%;
    }
}

.form button.csp-form-button {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-align: center;
    width: 200px;
    height: 60px;
    border-radius: 16px;
    margin: 0 30%;
    position: relative;
    overflow: hidden;
    background-image: (linear-gradient(270deg, #8e9ac2, #42579a));
    background-size: 400% 400%;
    animation: TransitioningBackground 10s ease infinite;
    transition: 0.6s;

    &::before {
        content: '';
        display: block;
        position: absolute;
        background: rgba(255, 255, 255, 0.5);
        width: 60px;
        height: 100%;
        top: 0;
        filter: blur(30px);
        transform: translateX(-100px) skewX(-15deg);
    }

    &::after {
        content: '';
        display: block;
        position: absolute;
        background: rgba(255, 255, 255, 0.2);
        width: 30px;
        height: 100%;
        top: 0;
        filter: blur(5px);
        transform: translateX(-100px) skewX(-15deg);
    }

    &:hover {
        background-image: (linear-gradient(to left, #2d8fe5, #d155b8));
        transform: scale(1.2);
        cursor: pointer;

        &::before,
        &::after {
            transform: translateX(300px) skewX(-15deg);
            transition: 0.7s;
        }
    }
}

.ms-login-container .csp-form a img {
    display: block;
    margin: 0 auto;
    width: 150px;
    height: 150px;
    object-fit: contain;
    
}

.ms-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2cab67;
    font-size: 14px;
    z-index: 2;
    border-radius: 20px;
}
.csp-loading-action {
    font-size: 2rem;
    background: linear-gradient(90deg, #ff6f61, #ffcc00, #ff6f61);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-move 2s linear infinite;
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}
.csp-loading-action {
  
    color: #ff6f61;
    display: inline-block;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.ms-popup-banner {
    position: fixed;
    bottom: 20%;
    left: 10px;
    width: 10%;
    height: 10%;
    display: flex;
    justify-content: left;
    align-items: center;
    z-index: 9999;
    visibility: visible;
    opacity: 1;
    transition: visibility 0.3s, opacity 0.3s;
}

.ms-popup-banner.hidden {
    visibility: hidden;
    opacity: 0;
    display: none;
}

.ms-popup-banner-content {
    position: relative;
    background: transparent;
    padding: 10px;
    border-radius: 10px;
    
    text-align: center;
}

.ms-popup-banner-close {

    background: none;
    color: #000;
    border: none;
    box-shadow: none;
    cursor: pointer;
    font-size: 20px;
    text-align: center;
    font-weight: bold;
}

.ms-popup-banner-close:hover {
    background: #cc0000;
    border-radius: 50%;
}
/*
.csp-login-register-btn {
    position: absolute;
    margin: auto;
    top: 10px;
    left: 20px;
    z-index: 99999;
    padding: 10px 10px;
    background-color: #dd9933;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}*/

/* chat */

/* دکمه چت */

#chat-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 99999;
    transition: all 0.3s ease;
}

#chat-button:hover {
    background-color: #0056b3;
}

/* پنجره چت */
#chat-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 99999;
}


/* سربرگ چت */
#chat-header {
    background-color: #007bff;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* محتوای چت */

#chat-content {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.chat-message {
    margin: 10px 0;
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
    text-wrap: wrap;
}

.chat-message.user {
    background-color: #d1e7dd;
    color: #0f5132;
    text-align: right;
}

.chat-message.support {
    background-color: #cfe2ff;
    color: #084298;
    text-align: left;
}

.chat-message.error {
    background-color: #f8d7da;
    color: #842029;
    text-align: left;
}

/* ورودی چت */
#chat-input {
    border-top: 1px solid #ddd;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#chat-input input , .input-csp-chat{
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#chat-input button , .input-csp-chat-button{
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#chat-input button:hover , .input-csp-chat-button:hover{
    background-color: #0056b3;
}
.user-info-form{
    margin: 10px;
}

/*Admin-chat*/

#chat-messages-container {
 margin: 10px;
}

/* end-chat */

@media screen and (max-width: 750px) {

    .ms-popup-banner {
        width: 150px;
        height: 150px;
        bottom: 10%;
    }
    .csp-login-register-btn{
        font-size:12px;
    }
   

}

/* مدال اصلی
#csp-modal {
    display: none;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 500px !important;
    z-index: 99999 !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    overflow: hidden;
    border-radius: 20px;
  
}
 */
 
/* overlay برای جلوگیری از اسکرول پشت مدال */
body.modal-open {
    overflow: hidden !important;
}

/* دکمه بستن مدال
.ms-login-container .close-modal-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    z-index: 100000;
}

 */
