@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,400;0,500;0,600;0,700;1,300&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", serif;
}

a {
    text-decoration: none;
}

body {
    font-family: Arial, sans-serif;
    background: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
    /*background: url("../assets/image/bg.png") no-repeat fixed center center/100%;*/
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 10px 0;
    top: 0;
}
.containerHeader {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
nav ul li {
    margin: 0 15px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: #18bc9c;
}

.auth-buttons {
    display: flex;
}
.btn {
    background-color: #18bc9c;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-left: 10px;
    transition: background-color 0.3s;
}
.btn:hover {
    background-color: #16a085;
}

main {
    display: flex;
    justify-content: center;
    margin: 5vh 0 15vh 0;
    padding: 0 10px;
}

.wrapper {
    background: white;
    max-width: 450px;
    width: 100%;
    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 h2 {
    font-size: 25px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6e6e6;
}
.form form {
    margin: 20px 0;
}
.form form .error-text {
    padding: 8px 10px;
    text-align: center;
    margin-bottom: 10px;
    display: none;
}
.form form .name-details {
    display: flex;
}
.form form .name-details .field:first-child {
    margin-right: 10px;
}
.form form .name-details .field:last-child {
    margin-left: 10px;
}
.form form .field {
    display: flex;
    margin-bottom: 10px;
    flex-direction: column;
    position: relative;
}
.form form .field label {
    margin-bottom: 2px;
    cursor: pointer;
}
.form form .input input {
    height: 40px;
    width: 100%;
    font-size: 16px;
    padding: 0 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.form form .field input {
    outline: none;
}
.form form .image input {
    font-size: 17px;
    cursor: pointer;
}
.form form .button input {
    height: 45px;
    border: none;
    color: white;
    font-size: 17px;
    background: #2c3e50;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 13px;
}
.form form .field i {
    position: absolute;
    right: 15px;
    top: 70%;
    color: #ccc;
    cursor: pointer;
    transform: translateY(-50%);
}
.form form .field i.active::before {
    color: #2c3e50;
    content: "\f070";
}
.form .link {
    text-align: center;
    margin: 10px 0;
    font-size: 17px;
}
.form .link a {
    color: #2c3e50;
    text-decoration: none;
}
.form .link a:hover {
    text-decoration: underline;
}
.form .help {
    text-align: center;
    margin: 10px 0;
    font-size: 17px;
}
.form .help a {
    color: #18bc9c;
    text-decoration: none;
}
.form .help a:hover {
    text-decoration: underline;
}

.users {
    padding: 25px 30px;
}
.users header,
.users-list a {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e6e6e6;
    justify-content: space-between;
}
.users header {
    background-color: white;
}
.wrapper img {
    border-radius: 50%;
    object-fit: cover;
}
.users header img {
    height: 50px;
    width: 50px;
}
:is(.users, .users-list) .content {
    display: flex;
    align-items: center;
}
:is(.users, .users-list) .details {
    color: #000;
    margin-left: 20px;
}
:is(.users, .users-list) .details span {
    font-size: 18px;
    font-weight: 500;
}
.users header .logout {
    display: block;
    background: #d82828;
    color: white;
    outline: none;
    border: none;
    text-decoration: none;
    padding: 7px 15px;
    border-radius: 5px;
    font-size: 17px;
}
.users .search {
    margin: 20px 0;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
}
.users .search .text {
    font-size: 14px;
}
.users .search input {
    position: absolute;
    height: 42px;
    width: calc(100% -50px) !important;
    font-size: 15px;
    padding: 0 15px;
    border: 1px solid #e6e6e6;
    outline: none;
    border-radius: 5px 0 0 5px;
    pointer-events: none;
    transition: all 0.2s ease;
    opacity: 0;
}
.users .search input.show {
    opacity: 1;
    pointer-events: auto;
}
.users .search button {
    position: relative;
    z-index: 1;
    width: 47px;
    height: 42px;
    font-size: 17px;
    cursor: pointer;
    border: none;
    background: white;
    color: #2c3e50;
    outline: none;
    border-radius: 0 5px 5px 0;
    transition: all 0.2s ease;
}
.users .search button.active {
    background: #d82828;
    color: white;
}
.search button.active i::before {
    content: "\f00d";
}
.users-list {
    max-height: 350px;
    overflow-y: auto;
}
:is(.users-list, .chat-box)::-webkit-scrollbar {
    width: 0;
}
.users-list a {
    padding-bottom: 10px;
    margin-bottom: 15px;
    padding-right: 15px;
    border-bottom-color: #f1f1f1;
}
.users-list a:last-child {
    margin-bottom: 0;
    border-bottom: none;
}
.users-list a img {
    width: 40px;
    height: 40px;
}
.users-list a .details p {
    color: #676767;
}
.users-list a .status-dot {
    font-size: 12px;
    color: #18bc9c;
    padding-left: 10px;
}
.users-list a .status-dot.offline {
    color : #ccc;
}

.chat-area header {
    display: flex;
    align-items: center;
    padding: 18px 30px;
}
.chat-area header .back-icon {
    color: white;
    font-size: 18px;
}
.chat-area header img {
    width: 45px;
    height: 45px;
    margin: 0 15px;
}
.chat-area header .details span {
    font-size: 17px;
    font-weight: 500;
}
.chat-box {
    position: relative;
    min-height: 500px;
    max-height: 500px;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 10px 30px 20px 30px;
    background: #f7f7f7;
    box-shadow: inset 0 32px 32px -32px rgb(0 0 0 / 5%),
    inset 0 -32px 32px -32px rgb(0 0 0 / 5%);
}
.chat-box .text {
    position: absolute;
    top: 45%;
    left: 50%;
    width: calc(100% - 50px);
    text-align: center;
    transform: translate(-50%, -50%);
}
.chat-box .chat {
    margin: 15px 0;
}
.chat-box .chat p {
    word-wrap: break-word;
    padding: 8px 16px;
    box-shadow: inset 0 0 32px rgb(0 0 0 / 8%),
    inset 0  16px 16px -16px rgb(0 0 0 / 10%);

}
.chat-box .outgoing {
    display: flex;
}
.chat-box .outgoing .details {
    margin-left: auto;
    max-width: calc(100% - 10%);
}
.outgoing .details p {
    background: #18bc9c;
    color: white;
    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: auto;
    margin-left: 10px;
    max-width: calc(100% - 10%);
}
.incoming .details p {
    background: white;
    color: #2c3e50;
    border-radius: 18px 18px 18px 0;
}
.typing-area {
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
}
.typing-area input {
    height: 45px;
    width: 85%;
    font-size: 16px;
    padding: 0 13px;
    border: 1px solid #e6e6e6;
    outline: none;
    border-radius: 25px;
}
.typing-area button {
    color: #2c3e50;
    border: none;
    outline: none;
    background: none;
    font-size: 30px;
    cursor: pointer;
    opacity: 0.7;
    pointer-events: none;
    border-radius: 0 5px 5px 0;
    transition: all 0.3s ease;
}
.typing-area button.active {
    color: #18bc9c;
    opacity: 1;
    pointer-events: auto;
}

.account-infos {
    margin: 25px 0;
}
.account-details {
    border-radius: 5px;
    border: 1px solid #ccc;
    margin: 25px 0;
    padding: 10px;
}
.account-link {
    text-align: center;
    margin-top: 25px;
}
.account-link a {
    color: #18bc9c;
    font-weight: 500;
    text-decoration: none;
}
.account-link a:hover {
    text-decoration: underline;
}

.update-link {
    text-align: end;
}
.update-link a {
    color: #18bc9c;
    font-weight: 500;
    text-decoration: none;
}
.update-link a:hover {
    text-decoration: underline;
}

.signdown-link {
    text-align: center;
    margin-top: 25px;
}
.signdown-link a {
    color: red;
    font-weight: 500;
    text-decoration: none;
}
.signdown-link a:hover {
    text-decoration: underline;
}

footer {
    background-color: #2c3e50;
    color: white;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}
.containerFooter{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}



@media (max-width: 768px) {

}

@media (min-width: 768px) {

}