*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'poppins', Open-Sans;
}

body
{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #642ffa;
}

.wrapper{
    background: #fff;
    width: 450px;
    border-radius: 16px;
    box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
                0 32px 64px -48px rgba(0, 0, 0, 0.5);  
}

.form{
    padding: 25px 30px;
}

.form header{
    font-size: 25px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6e6e6;
}

.form form{
    margin: 20px 0;
}

.form form .error-txt{
    color: #721c24;
    background: #f8d7da;
    padding: 8px 10px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid #f5c6cb;
    display: none;
}

.form form .success-txt{
    color: #051505;
    background: #98e698;
    padding: 8px 10px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid #f5c6cb;
}

.form form .name-details
{
    display: flex;
}

form .name-details .field:first-child{
 margin-right: 10px;
}

form .name-details .field:last-child{
    margin-left: 10px;
   }

   .form form .field i{
    position: absolute;
    right: 15px;
    color: #ccc;
    top:70%;
    transform: translateY(-50%);
    cursor: pointer;
}

.form form .field i.active::before{
    color: #333;
    content: "\f070";
}
.form form .field
{
    display: flex;
    position: relative;
    flex-direction: column;
    margin-bottom: 10px;
}

.form form .field label{
    margin-bottom: 2px;
}

.form form .field input
{
    outline: none;
}
.form form  .input input{
    height: 40px;
    width: 100%;
    font-size: 16px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.form form  .image input{
    font-size: 17px;
}

.form form  .button button
{
    margin-top: 13px;
    height: 45px;
    border: none;
    font-size: 17px;
    font-weight: 500;
    background: #000;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}


.form .link
{
    text-align: center;
    margin: 10px 0;
    font-size: 17px;
}

.form .link a 
{
    color: #333;
}
.form .link a:hover
{
 text-decoration: underline;
}

/* Users Area CCS Code*/

.users{
    padding: 25px 30px;
}
.users header,
.user-list a{
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    justify-content: space-between;
    border-bottom: 1px solid #e6e6e6;
}

:is(.users, .user-list) .content
{
    display: flex;
    align-items: center;
}
.users header .content img{
    height: 50px;
    width: 50px;
}
.wrapper img{
    object-fit: cover;
    border-radius: 50%;
}
:is(.users, .user-list) .details{
    color: #000;
    margin-left: 15px;
}
:is(.users, .user-list) .details span{
    font-size: 18px;
    font-weight: 500;
}
:is(.users, .user-list) .details p{
    font-size: 12px;
    font-weight: 500;
}
.users header .details {
    padding-left: 5px;
    padding-top: 5px;
}
.users header .Logout{
    color: #fff;
    font-size: 17px;
    padding: 7px 15px;
    background: #333;
    border-radius: 5px;
}
.users .Search{
    margin: 20px 0;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: space-between;
   
}
.users .Search .text{
    font-size: 17px;
    padding-left: 15px;
    font-weight: 500;
}

.users .Search input{
    position: absolute;
    height: 42px;
    width: 85%;
    border: 1px solid #ccc;
    padding: 0 13px;
    font-size: 14px;
    border-radius: 5px 0 0 5px;
    outline: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.users .Search input.active{
    opacity: 1;
    pointer-events: auto;
}

.users .Search button{
    width: 57px;
    height: 42px;
    border: none;
    outline: none;
    color: #333;
    background: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 17px;
}

.users .Search button.active{
    color: #fff;
    background: #333;
}
.users .Search button.active i::before{
    content: "\f00d";
}

.user-list{
 max-height: 350px;
 overflow-y: auto;
}

:is(user-list,.chat-box)::-webkit-scrollbar{
    width: 0px;
}
.user-list a{
    padding-right: 15px;
    margin-bottom: 10px;
    page-break-after: 10px;
    border-bottom-color: #f1f1f1 ;

}
.user-list a:last-child{
    border: none;
    margin-bottom: 0px;
}
.user-list a .content img{
    height: 40px;
    width: 40px;
}
.user-list a .status-dot{
    font-size: 12px;
    color: #468669;
}

.user-list a .content p{
 font-size: 13px;
 color: #67676a;
}
/* We use this class name in php to show offline status*/
.user-list a .status-dot.offline{
    color: #ccc;
}


/* Chat Area*/

.chat-area header{
    display: flex;
    align-items: center;
    padding: 18px 30px;
}

.chat-area header img{
    height: 45px;
    width: 45px;
    margin: 15px;
}
.chat-area header .back-icon{
    font-size: 18px;
    color:#333 ;
}
.chat-area header span{
    font-size: 18px;
    font-weight: 500;
}

.chat-box{
    position: relative;
    min-height: 450px;
    max-height: 500px;
    overflow-y: auto;
    background: #f7f7f7;
    padding: 10px 30px 20px 30px;
    box-shadow: inset 0 32px 32px -32px rgb(0 0 0 / 5%),
                inset 0 -32px 32px -32px rgb(0 0 0 / 5%);
}

.chat-box .chat{
    margin: 15px 0px;
}
.chat-box .chat p{
    word-wrap: break-word;
    padding: 8px 16px;
    box-shadow: 0 0 32px  rgb(0 0 0 / 8%),
     0 -16px 16px -16px rgb(0 0 0 / 5%);

}
.chat-box .outgoin{
    display: flex;
 
}
.chat-box .outgoing .details{
    margin-left: auto;
    max-width: calc(100% - 130px);
  }
.outgoin .details
{
    margin-left: auto;
    max-width: calc(100% - 10px);
}
.outgoin .details p{
    background: #333;
    color:#fff;
    border-radius: 18px 18px 0 18px;
}
.chat-box .incoming{
    display: flex;
    align-items: flex-end;
}
.chat-box .incoming img{
    height: 35px;
    width: 35px;
}
.chat-box .incoming .details{
    margin-right: 10px;
    max-width: calc(100% - 130px);
  }
.incoming .details p{
    color: #333;
    background: #fff;
    border-radius: 18px 18px 18px 0;
}

.incoming .details {
    margin-right: auto;
    max-width: calc(100% - 130px);
}

.chat-area .typing-area{
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
}
.typing-area input{
    height: 45px;
    width: 100%;
    font-size: 17px;
    padding-left: 15px;
    border: 1px solid #cccc;
    border-radius: 5px 0 0 5px;
    outline: none;
}
.typing-area button{
    width: 55px;
    border: none;
    outline: none;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    background-color: #333;
    border-radius:0 5px 5px 0;

}