/* --- CONFIGURAÇÕES GLOBAIS E PALETA DE CORES --- */
:root {
    --gradiente-azul: linear-gradient(135deg, #B5E0F7, #7FB2E7);
    --roxo-konectomi: #82389C;
    --gradiente-verde: linear-gradient(135deg, #00F41C, #2DB796);
    --branco-base: #FFFBFF;
    --cinza-escuro: #2a2a2a;
    --texto-escuro: #333;
    --borda-suave: #e0e0e0;
}

body, html {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--gradiente-azul);
    color: var(--texto-escuro);
    /* REMOVIDO: 'height: 100%' e 'overflow: hidden' para permitir rolagem se necessário em telas pequenas */
}

/* --- TELA DE LOGIN/LOBBY --- */
.lobby-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* AJUSTADO: Usando min-height com vh para garantir que o container ocupe a tela toda, mas possa crescer se o conteúdo for maior */
    min-height: 100vh;
    padding: 40px 20px; /* Aumentado o padding vertical para dar mais espaço */
    box-sizing: border-box;
}

.login-box {
    background: var(--branco-base);
    padding: 30px 40px 40px 40px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    max-width: 850px;
    width: 100%;
    text-align: center;
}

/* --- HEADER DO LOGIN COM LOGO --- */
.login-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--borda-suave);
}

.header-logo {
    height: 40px;
    width: auto;
}

.login-header h1 {
    font-size: 2.5em;
    color: var(--roxo-konectomi);
    margin: 0;
}

/* --- CONTAINER PARA OS FORMULÁRIOS --- */
.login-body {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.login-section {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.login-section:last-child {
    padding-left: 40px;
    border-left: 1px solid var(--borda-suave);
}

h2 {
    color: var(--roxo-konectomi);
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5em;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--borda-suave);
    background-color: #f7f8fc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: all 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--roxo-konectomi);
    box-shadow: 0 0 0 3px rgba(130, 56, 156, 0.2);
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-join {
    background: var(--gradiente-verde);
}

.btn-admin {
    background: var(--roxo-konectomi);
}

.error-message {
    color: #d93025;
    text-align: center;
    margin-top: 15px;
    height: 20px;
    font-weight: 500;
}

/* --- LAYOUT DA REUNIÃO E TELA DE AGRADECIMENTO --- */
#meet, #thank-you-screen {
    height: 100vh; /* Usar vh aqui para garantir que ocupe a tela inteira */
    width: 100%;
}

.hidden {
    display: none !important;
}

#thank-you-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--cinza-escuro);
}

.thank-you-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--branco-base);
}

.thank-you-content p {
    font-size: 1.2em;
    color: #b0b0b0;
}


/* --- NOVO: ESTILOS DO POPUP DE AVISO --- */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: var(--branco-base);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.popup-content h3 {
    margin-top: 0;
    font-size: 1.8em;
    color: var(--roxo-konectomi);
}

.popup-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.popup-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--borda-suave);
    margin-bottom: 25px;
}

/* Ajusta o botão do popup para não ocupar a largura toda */
#close-popup-btn {
    width: auto;
    padding: 12px 30px;
}

/* --- RESPONSIVIDADE PARA MOBILE --- */
@media (max-width: 768px) {
    .login-box {
        padding: 25px;
    }
    .login-body {
        flex-direction: column;
        gap: 30px;
    }
    .login-section:last-child {
        padding-left: 0;
        border-left: none; /* Remove o separador vertical */
        padding-top: 30px;
        border-top: 1px solid var(--borda-suave); /* Adiciona separador horizontal */
    }
}