@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");

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

:root {
    font-size: 16px;
}

body {
    background: url("../images/background.jpg");
    color: #f2f2f2e7;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



.container {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.logo-login {
  width: 100%;
  max-width: 270px;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(18px, 4vw, 30px);
}

.logo-login img {
  width: 100%; 
  height: auto; 
}

.login {
    width: 100%;
    max-width: 330px;
    background-color: #2121212c;
    border-radius: 5px;
    padding: 20px;
}

.login > h2 {
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.login__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login__input {
    border: none;
    padding: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: #12121249;
    color: #f2f2f2;
    outline: none;
    border-radius: 5px;
}

.login__input:focus {
    outline: 2px solid #f2f2f293;
}

.login__button {
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    background-color: #dddddd7a;
    cursor: pointer;
    color: #121212;
}

.login__button:disabled {
    cursor: wait;
    opacity: 0.75;
}

.login__button:hover {
    background-color: #521d8342;
}

.login__status {
    min-height: 1.2rem;
    margin-top: 14px;
    text-align: center;
    font-size: 0.85rem;
    color: #ddd3ff;
}

.chat {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.chat__status {
    min-height: 1.2rem;
    padding: 12px 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #ddd3ff;
}

.chat__messages {
    flex-grow: 1;
    padding: 30px 30px 90px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow-y: auto;
}

.chat__form {
    background-color: #191919;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

.chat__input {
    border: none;
    padding: 15px;
    border-radius: 8px;
    flex-grow: 1;
    background-color: #212121;
    outline: none;
    color: #f2f2f2b2;
    font-size: 1rem;
}

.chat__button {
    border: none;
    background: none;
    color: #f2f2f291;
    cursor: pointer;
}

.chat__button > span {
    font-size: 1.8rem;
}

.chat__messages > div {
    padding: 10px;
    width: 100%;
    max-width: 250px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 22px;
    word-break: break-word;
}

.message--self {
    background-color: #f2f2f2c4;
    color: #121212;
    border-radius: 10px 10px 0 10px;
    align-self: flex-end;
}

.message--other {
    background-color: #333333e5;
    color: #f7c0c0;
    border-radius: 0 10px 10px 10px;
    align-self: flex-start;
}

.message--sender {
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
    color: rgb(57, 214, 219);
}

@media (max-width: 500px) {
    .container {
        padding: 20px 14px;
    }

    .logo-login {
        max-width: 220px;
    }

    .login {
        width: 100%;
        max-width: 320px;
    }

    .chat__messages {
        padding: 20px 20px 80px;
    }
}
