body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #000000;
  overflow: hidden;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

.login-box,
.panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 10, 10, 0.85);
  border: 2px solid #ff000083;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  color: #ff4c4c;
  box-shadow: 0 0 15px #ff000091;
  width: 90%;
  max-width: 320px; /* largura padrão */
}

.login-box img {
  width: 100px;
  margin-bottom: 20px;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  border: 1px solid #ff4c4c9d;
  background: transparent;
  color: #ff6666;
  border-radius: 8px;
  outline: none;
  font-size: 16px;
}

.login-box button {
  background: #ff000086;
  border: 2px solid #ff0000;
  padding: 10px 20px;
  border-radius: 10px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 10px #ff0000;
  font-size: 16px;
}

.login-box button:hover {
  background: #ff1a1ab6;
  box-shadow: 0 0 20px #ff0000;
}

.panel {
  display: none;
}

.tab-buttons {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.tab-buttons button {
  background: transparent;
  border: 2px solid #ff0000;
  color: #ff4c4c;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 0 10px #ff0000;
  font-size: 14px;
}

.tab-buttons button.active {
  background: #ff33338c;
  color: #000000;
}

.tab-content {
  text-align: left;
}

.slider-container {
  margin: 15px 0;
}

/* Slider customizado: barra branca, thumb branco com borda azul que fica azul ao arrastar */
.slider-container input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: white;
  border-radius: 5px;
  outline: none;
}

/* Track da barra */
.slider-container input[type='range']::-webkit-slider-runnable-track {
  height: 6px;
  background: white;
  border-radius: 5px;
}

/* Thumb branco com borda azul */
.slider-container input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid blue;
  margin-top: -5px;
  transition: background 0.3s, border-color 0.3s;
}

/* Thumb azul quando ativo (arrastando) */
.slider-container input[type='range']:active::-webkit-slider-thumb {
  background: blue;
  border-color: blue;
}

/* Firefox track */
.slider-container input[type='range']::-moz-range-track {
  height: 6px;
  background: white;
  border-radius: 5px;
}

/* Firefox thumb */
.slider-container input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: white;
  border: 2px solid blue;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.slider-container input[type='range']::-moz-range-thumb:active {
  background: blue;
  border-color: blue;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 0, 0, 0.418);
  color: #000000;
  border: 1px solid #ff00009c;
  margin: 10px 0;
  font-size: 14px;
}

.panel button {
  background: #ff000085;
  color: #000;
  padding: 10px;
  width: 100%;
  font-weight: bold;
  border: 2px solid #ff0000;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 0 10px #ff0000;
  font-size: 16px;
}

.panel button:hover {
  background: #ff1a1ab6;
  box-shadow: 0 0 20px #ff0000;
}

.copyright {
  position: fixed;
  bottom: 10px;
  left: 10px;
  color: #ff4c4c;
  font-size: 14px;
}

/* Imagem de perfil */
.profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;       /* deixa a imagem redonda */
  object-fit: cover;        /* garante o corte correto da imagem */
  margin-bottom: 15px;
  border: 2px solid #ff0000; /* borda vermelha neon */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Ajustes para telas pequenas (iPhone) */
@media (max-width: 500px) {
  .login-box,
  .panel {
    max-width: 260px; /* painel menor */
    padding: 20px;    /* menos padding */
  }

  .login-box img {
    width: 80px;      /* logo menor */
  }

  .login-box input,
  select,
  .panel button {
    font-size: 14px;  /* texto menor */
    padding: 8px;
  }

  .tab-buttons button {
    padding: 6px 8px;
    font-size: 12px;
  }

  .slider-container input[type='range'] {
    height: 5px; /* slider menor */
  }

  .slider-container input[type='range']::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -4.5px;
  }

  .slider-container input[type='range']::-moz-range-thumb {
    width: 14px;
    height: 14px;
  }

  /* Ajuste da imagem de perfil em telas pequenas */
  .profile-img {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }
}
