/* RESET SIMPLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
  background-color: #0f0f0f;
  color: #ffffff;
  /* Usar min-height para garantir que o body ocupe a altura total da viewport */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    #bed50b 10px,
    #bed50b 20px
  );
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* CONTAINER PRINCIPAL */
/* O container já é bem responsivo com max-width e width: 100% */
.container {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid #bed50b;
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 0 20px #000;
}

/* LOGO */
.logo {
  display: block;
  max-width: 160px;
  margin: 0 auto 20px;
}

/* TÍTULO */
h1, h2 {
  text-align: center;
  color: #bed50b;
  font-size: 22px;
  margin-bottom: 30px;
}


/* CAMPOS */
form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #bed50b;
  font-size: 14px;
}

/* Campos de texto, email, tel, password */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #bed50b;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 15px;
  margin-bottom: 20px;
}

form input:focus {
  outline: none;
  box-shadow: 0 0 5px #bed50b;
}

/* BOTÃO */
button,
form input[type="button"],
form input[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #bed50b;
  color: #0f0f0f;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}
button:hover,
form input[type="button"]:hover,
form input[type="submit"]:hover {
  background-color: #a6d900;
}

/* CHECKBOX */
form input[type="checkbox"] {
  margin-right: 8px;
}

.checkbox-label {
  color: #fff;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

/* RESULTADO */
#resultado {
  text-align: center;
  font-weight: bold;
  margin-top: 15px;
}
.alert-erro {
    background: #ffe5e5;
    color: #b30000;
    border: 1px solid #ffb3b3;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================
   LAYOUT ADMIN / DASHBOARD
========================= */

body.admin {
  display: block;
  align-items: initial;
  justify-content: initial;
  padding: 40px;
}

/* Container maior para tabelas */
.container-admin {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid #bed50b;
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 0 20px #000;
}

/* Header admin */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-header h2 {
  margin: 0;
}

.admin-header a {
  text-decoration: none;
  background: #bed50b;
  color: #0f0f0f;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.admin-header a:hover {
  background: #a6d900;
}

/* =========================
   TABELA
========================= */

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}

thead {
  background: #bed50b;
  color: #000;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
}

th {
  font-weight: 700;
}

tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

tbody tr:hover {
  background: rgba(190,213,11,0.08);
}

/* Scroll horizontal em telas menores */
.table-wrapper {
  overflow-x: auto;
}

/* ================= MODAL TERMOS ================= */

.modal-termos {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #0f0f0f;
  border: 2px solid #bed50b;
  border-radius: 14px;
  padding: 20px;
  width: 92%;
  max-width: 600px;

  max-height: 85vh;
  overflow-y: auto;

  color: #fff;
  box-shadow: 0 0 20px #000;
}

.modal-content h2 {
  text-align: center;
  color: #bed50b;
  margin-bottom: 15px;
}

.modal-content h3 {
  margin-top: 15px;
  color: #bed50b;
  font-size: 16px;
}

.modal-texto p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.modal-content button {
  margin-top: 15px;
}



@media (min-width: 481px) {
  .container {
    padding: 50px 40px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 500px;
  }
}