/* Container Principal Responsivo */
.container-sistema-jogos {
    width: 100%;
    max-width: 480px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

/* Título */
.container-sistema-jogos h2 {
    text-align: center;
    color: #333333;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

/* Alertas de Erro */
.erro-alerta-jogos {
    background-color: #fdf2f2;
    color: #de3545;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #fbc4c9;
    text-align: center;
    font-size: 0.9rem;
}

/* Abas de Navegação (Flexbox) */
.abas-botoes {
    display: flex;
    width: 100%;
    margin-bottom: 25px;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}

.aba-btn {
    flex: 1;
    padding: 14px 10px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: #ffffff;
    background-color: #888888;
    transition: all 0.25s ease;
    text-align: center;
    white-space: nowrap;
}

.aba-btn.ativa {
    background-color: #0073aa;
    font-weight: bold;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.15);
}

.aba-btn:not(.ativa):hover {
    background-color: #777777;
}

/* Grupos de Campos de Entrada */
.campo-grupo {
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}

.campo-grupo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444444;
    font-size: 0.9rem;
}

.campo-grupo input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.2s, background-color 0.2s;
}

.campo-grupo input[type="password"],
.campo-grupo input[type="text"].com-botoes {
    padding-right: 45px; 
}

.campo-grupo input:focus {
    border-color: #0073aa;
    background-color: #ffffff;
    outline: none;
}

/* Botão do Alternador de Senha */
.alternar-senha-btn {
    position: absolute;
    right: 12px;
    bottom: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    z-index: 10;
}

.alternar-senha-btn:disabled {
    cursor: not-allowed;
}

/* Botão de Enviar Padrão (Entrar / Principal) */
.btn-enviar {
    width: 100%;
    padding: 14px;
    background-color: #0073aa;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.btn-enviar:hover, .btn-enviar:focus {
    background-color: #005177;
}

/* Botão para Entrar nos Jogos */
.btn-entrar-jogo {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #0073aa;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.btn-entrar-jogo:hover, .btn-entrar-jogo:focus {
    background-color: #005177;
    color: #ffffff !important;
}

/* ALTERAÇÃO 1: Botão para se cadastrar (Sempre texto Branco) */
.btn-cadastrar {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #28a745;
    color: #ffffff !important; /* Força texto branco */
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.btn-cadastrar:hover, .btn-cadastrar:focus {
    background-color: #1e7e34;
    color: #ffffff !important;
}

/* ALTERAÇÃO 3: Customização Completa do Botão Logoff */
.btn-logoff {
    flex: 1;
    padding: 14px;
    background-color: #dc3545; /* Fundo Vermelho */
    color: #ffffff !important; /* Texto Sempre Branco */
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.btn-logoff:hover, .btn-logoff:focus {
    background-color: #bd2130; /* Vermelho mais Escuro no Hover */
    color: #ffffff !important;
}

/* Ajustes finos para telas menores que 360px */
@media (max-width: 360px) {
    .container-sistema-jogos {
        padding: 15px;
    }
    .aba-btn {
        font-size: 0.85rem;
        padding: 10px 5px;
    }
    .container-sistema-jogos h2 {
        font-size: 1.3rem;
    }
}