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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #4b0000 0%, #000000 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  color: #fff;
  overflow-y: auto;
  padding-top: 60px;
}

.login-container {
  background-color: transparent;
  padding: 40px 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin: 20px 0;
}

.content-section {
  background-color: transparent;
  padding: 40px 15px;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  text-align: left;
  margin: 20px 0;
}

.content-section h2 {
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
}

.content-section h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #fff;
}

.content-section p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 15px;
}

.content-section ul {
  color: #ccc;
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.content-section li {
  margin-bottom: 10px;
}

.logo {
  display: block;
  margin: 0 auto 20px;
  max-width: 150px;
}

.login-container h2 {
  margin-bottom: 20px;
  color: #fff;
}

.message {
  color: #28a745;
  margin-bottom: 10px;
  font-weight: bold;
}

.error {
  color: #dc3545;
  margin-bottom: 10px;
  font-weight: bold;
}

input,
select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s;
  background-color: #333;
  color: #fff;
}

input::placeholder {
  color: #ccc;
}

input:focus,
select:focus {
  border-color: #667eea;
  outline: none;
}

button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  color: #fff;
  margin: 0 5px;
}

.login-btn {
  background-color: #4caf50;
  width: 150px; /* ou o tamanho que quiser */
  margin: 0 auto; /* centraliza o botão */
}

.login-btn:hover {
  background-color: #43a047;
}

.register-btn {
  background-color: #daa520;
}

.register-btn:hover {
  background-color: #b8860b;
}

.flash-messages {
  margin-bottom: 15px;
}

.flash-error {
  color: red;
  background-color: #ffe0e0;
  padding: 10px;
  border: 1px solid red;
  border-radius: 5px;
  margin-bottom: 10px;
}

.flash-success {
  color: green;
  background-color: #e0ffe0;
  padding: 10px;
  border: 1px solid green;
  border-radius: 5px;
  margin-bottom: 10px;
}

.button-group {
  text-align: center; /* centraliza o conteúdo dentro */
  margin-top: 5px;
}

.recaptcha-wrapper {
  margin-top: 20px;
  display: none;
  justify-content: center;
}

.recaptcha-notice {
  margin-top: 15px;
  font-size: 14px;
  color: #fff;
  text-align: center;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}

.toggle-password svg {
  width: 22px;
  height: 22px;
  fill: #ccc;
}

.toggle-password:hover svg {
  fill: #fff;
}

.navbar {
  background-color: #333;
  padding: 10px 0;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.navbar li {
  margin: 0 15px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

.navbar a:hover {
  color: #ddd;
}

footer {
  text-align: center;
  padding: 30px 0;
  width: 100%;
  margin-top: auto;
  margin-bottom: 20px;
}

.support-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.support-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.support-links a:hover {
  color: #fff;
}

.support-links i {
  font-size: 20px;
}

/* Estilos para os balões de validação */
#login-form {
  position: relative;
}

.tooltip {
  position: absolute;
  background-color: #ff4d4d;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  display: none;
  z-index: 10;
  white-space: nowrap;
  left: 50%;
  transform: translateX(-50%);
}

.tooltip::before {
  content: "";
  position: absolute;
  border: 6px solid transparent;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 6px solid #ff4d4d;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.tooltip-username,
.tooltip-password {
  top: calc(70% + 0px); /* Posiciona abaixo do button-group */
}

/* Media queries para dispositivos móveis */
@media (max-width: 600px) {
  .login-container {
    padding: 20px 15px;
    margin: 10px 0;
  }

  .content-section {
    padding: 20px 15px;
    max-width: 100%;
    margin: 10px 0;
  }

  .navbar {
    padding: 8px 0;
  }

  .navbar li {
    margin: 5px 10px;
  }

  .navbar a {
    font-size: 14px;
  }

  .content-section h2 {
    font-size: 1.5em;
  }

  .content-section h3 {
    font-size: 1.2em;
  }

  .content-section p,
  .content-section li {
    font-size: 0.9em;
  }

  footer {
    padding: 20px 0;
    margin-bottom: 10px;
  }

  .support-links {
    gap: 10px;
  }

  .support-links a {
    font-size: 14px;
  }

  .support-links i {
    font-size: 18px;
  }

  .tooltip {
    font-size: 12px;
    padding: 6px 12px;
    white-space: normal;
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  .tooltip-username,
  .tooltip-password {
    top: calc(70% + 0px);
    left: 50%;
    transform: translateX(-50%);
  }

  .tooltip::before {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom: 6px solid #ff4d4d;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
  }
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-top: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
