* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --altura-viewport: 100dvh;
}

body {
    background: linear-gradient(to left top, #2e3440, #3b4252, #4c566a, #463950);
    min-height: var(--altura-viewport);
    display: flex;
    justify-content: center;
    align-items: center;
}

#container {
    width: 100%;
    height: var(--altura-viewport);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
}

#Login {
    width: 100%;
    max-width: 330px;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35), inset 0 0 0.5px rgba(255, 255, 255, 0.2);
    z-index: 20;
}

#Login h2 {
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

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

.login_input {
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 15px;
    color: black;
}

.login_input:focus {
    outline: 2px solid #fff;
}

.login__button {
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    background-color: #fff;
    cursor: pointer;
    color: #222;
    transition: 0.3s;
}

.login__button:hover {
    scale: 0.9;
    background-color: beige;
}

/* ======= CHAT ======= */

#chat {
    width: 90vw;
    height: calc(var(--altura-viewport) * 0.9);
    max-height: var(--altura-viewport);
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35), inset 0 0 0.5px rgba(255, 255, 255, 0.2);
    z-index: 20;
}

#chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
    min-height: 0;
}

#chat-mensagens {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    width: 100%;
    padding-bottom: 10px;
    max-height: calc(var(--altura-viewport) * 0.8);
    overflow-y: auto;
}

.mensUser {
    padding: 15px;
    max-width: 300px;
    min-width: 150px;
    font-size: 0.8rem;
    margin: 10px;
    font-weight: 500;
    line-height: 22px;
    border-radius: 12px 12px 0 12px;
    margin-left: auto;
    background-color: antiquewhite;
    color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    align-self: flex-end;
}

.mensoutro {
    background-color: #262b36;
    color: #fff;
    border-radius: 12px 12px 12px 0;
    padding: 15px;
    max-width: 300px;
    min-width: 150px;
    font-size: 0.8rem;
    margin: 10px;
    font-weight: 500;
    line-height: 22px;
    align-self: flex-start;
}

.escritorOU {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: darkcyan;
}

.chat_form {
    position: fixed; 
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(87, 60, 60, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35), inset 0 0 0.5px rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 5%;
    z-index: 100;
}

.chat-input {
    border: none;
    width: 30%;
    padding: 15px;
    border-radius: 8px;
    flex-grow: 1;
    background-color: #3b4252;
    color: #fff;
}

.chatButon {
    font-size: 1.2rem;
    border-radius: 15px;
    padding: 10px;
    background: rgba(87, 60, 60, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35), inset 0 0 0.5px rgba(255, 255, 255, 0.2);
    pointer-events: painted;
}

/* RESPONSIVO */
@media (max-width: 750px) {
    body{
        height: 100%;
    }
    #chat {
        width: 95vw;
        height: calc(var(--altura-viewport) * 0.95);
    }

    #Login {
        padding: 15px;
    }

    .chat_form {
        flex-direction: column;
        padding: 10px 20px;
        gap: 10px;
    }

    .chat-input {
        width: 100%;
    }

    .chatButon {
        width: 100%;
    }
}
