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

body {
  font-family: 'Poppins', sans-serif;
  background-image: url("../img/Formulario-Aluno.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center; /* 🔥 Centralização vertical */
  min-height: 100vh;
  padding: 20px;
  overflow-x: hidden;
}

/* Menu fixo no topo direito */
.top-icons {
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  z-index: 10000;
  height: 40px;
  font-size: 0;
}

.icon-box {
  width: 60px;
  height: 40px;
  background-color: #2a223d;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: height 0.3s ease;
  text-decoration: none;
  position: relative;
  padding: 0;
  margin: 0;
}

.icon-box.aluno {
  background-color: #7d3cff;
}
.icon-box.profissional {
  background-color: #28a745;
}
.icon-box.coordenador {
  background-color: #007bff;
}

.seta-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.icone-oculto {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 20px;
  margin-top: 5px;
}

.icon-box:hover {
  height: 90px;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.icon-box:hover .icone-oculto {
  opacity: 1;
  transform: translateY(0);
}

.icon-box:hover .seta-icon {
  opacity: 0;
}

.main-container {
  display: flex;
  align-items: center;
  gap: 90px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
}

.texto-forms {
  text-align: center;
  margin-top: 20px;
}

.text-destaque {
  font-size: 30px;
  color: #3687e4;
  margin-bottom: 10px;
}

.form-container {
  flex: 1;
  max-width: 400px;
  background-color: #2a223d;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  width: 100%;

  /* Centralização e animação */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: fadeIn 0.4s ease forwards;
  opacity: 0;
}

/* 🔥 Animação de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.form-title {
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
}

.user-form .form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  color: #ccc;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #3a2e52;
  color: #fff;
  font-size: 14px;
}

.form-input::placeholder {
  color: #aaa;
}

.form-button {
  width: 100%;
  padding: 12px;
  background-color: #6642e7;
  color: #ffffff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 15px;
}

.form-button:hover {
  background-color: #ffffff;
  color: black;
}

.texto-forms {
  text-align: center;
  margin-top: 20px;
}

.link {
  margin-top: 10px;
}

.link a {
  color: #4983ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.link a:hover {
  color: #5b37dd;
  text-decoration: underline;
}

/* === Responsividade === */

/* Telas até 1024px */
@media (max-width: 1024px) {
  .form-container {
    max-width: 380px;
    padding: 35px;
  }
  .text-destaque {
    font-size: 24px;
  }
}

/* Telas até 768px */
@media (max-width: 768px) {
  body {
    background-image: url("../img/Formulario-aluno-responsivo.png") !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center; /* 🔥 centralizado */
    min-height: 100vh;
    margin: 0;
    padding: 0;
  }

  .form-container {
    width: 90%;
    max-width: 360px;
    padding: 30px;
    background-color: rgba(42, 34, 61, 0.9);
  }

  .text-destaque {
    font-size: 22px;
  }

  .form-input,
  .form-button {
    font-size: 14px;
    padding: 10px;
  }
}

/* Telas muito pequenas */
@media (max-width: 480px) {
  .form-container {
    width: 95%;
    max-width: 340px;
    padding: 25px;
  }
  .text-destaque {
    font-size: 20px;
  }
}
