.ki-modal-container {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.ki-modal-container.open {

    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: block;
    align-items: center;
    justify-content: center;
}

.ki-modal {
    background: #FFF;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    position: relative;
    width: 350px;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    top: 20%;

}

button.ki-close {
    border: none;
    background: #FFF!important;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .16);
    width: 50px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -21px;
    top: -21px;
    cursor: pointer;
}

form#ki-login {
    margin-bottom: 0;
}

.ki-modal h2 {
    margin-bottom: 37px;
    text-align: center;
    display: block;
    font-size: 19px!important;
    font-weight: 500;
    line-height: 38px!important;
    color: #53565d;
}

.ki-field {
    text-align: right;
    margin: 25px 0;
}

.ki-field label {
    display: block;
    margin-bottom: 5px;
    color: #7a7979;
    font-size: 14px;
}

.ki-cols {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

.ki-cols span {
    direction: ltr;
    font-weight: bold;
    text-align: center;
    color: #696969!important;
}

.ki-cols input {
    margin-top:3px;
    width: 100%;
    box-sizing: border-box;
    direction: ltr;
    display: block;
    background-color: #f8f9fa !important;
    padding-right: 15px;
    height: 40px;
    line-height: 40px;
    color: #6a6a6a!important;
    transition: .3s;
    -webkit-transition: .3s;
    border: none !important;
    border-radius: 4px;
    font-size: 17px;
}


.ki-modal form button {
    border: none;
    background: #8ed557;
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    color: #FFF;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: 0.3s;
    /*font-family: "YekanBakhFaNum", Sans-serif;*/
}

.ki-modal form button:hover {
    background: #7fc945;
    color:#fff!important;
}

.ki-modal form button[disabled] {
    filter: grayscale(1);
    opacity: .4;
}

.ki-modal form button svg path, .ki-modal form button svg rect {
    fill: #FFF;
}

.ki-modal form button svg {
    width: 20px;
    display: none;
    height: 20px;
}

.ki-modal form.loading button svg {
    display: inline;
}

p.ki-message {
    text-align: right;
    border: 1px solid #EEA6A6;
    padding: 8px;
    border-radius: 4px;
    color: #FF6363;
    background: lab(63.3 60.41 32.99 / .1);
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    /*font-family: "YekanBakhFaNum", Sans-serif!important;*/
}

p.ki-message.active {
    display: flex;
}

.ki-success {
    background: #e7fae7;
    color: #53a713;
    border: 1px solid #8ed557;
    padding: 8px;
    border-radius: 4px;
    font-size:15px;
    /*font-family: "YekanBakhFaNum", Sans-serif;*/
    color:#4d4f52!important;
}

.ki-login-result , .ki-no-receive p{font-size:13px;
/*font-family: "YekanBakhFaNum", Sans-serif;*/
color:#4d4f52!important;
    
}
.ki-codes {
    display: flex;
    gap: 3px;
    margin: 25px 0px;
    direction: ltr;
    justify-content: space-between;
}

#ki-verify .ki-codes input {
    width: 60px;
    height: 57px;
    border-radius: 8px;
    background: #F6F6F6;
    border: 1px solid #FFF;
    text-align: center;
    color: #8ed557;
    font-size: 36px;
    font-weight: bold;
    /*font-family: IRANSANSfanum;*/
    direction: ltr;
}

.ki-no-receive {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

a.ki-resend, a.ki-resend:hover {
    color: #8ed557;
    font-weight: 500;
    opacity: .4;
    font-size: 13px;
    text-decoration: none;
}

a.ki-resend.active {
    opacity: 1;
    font-weight: bold;

}

span.ki-countdown {
    color: #8ed557;
    font-weight: 500;
}

.ki-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

form#ki-verify {
    margin-bottom: 0;
}

button.ki-btn.ki-btn-secondary {
    border: 1px solid #8ed557;
    background: none;
    color: #8ed557;
}

button.ki-btn.ki-btn-secondary:hover {
    color: #fff
}

.ki-modal form#ki-verify {
    display: none;
}

.ki-modal.verify form#ki-verify {
    display: block;
}

.ki-modal.verify form#ki-login {
    display: none;
}

@media screen and (max-width: 600px) {
    button.ki-close {
        right: 5px;
    }
}