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

body {
  font-family: 'Poppins', sans-serif;
  background-image: url("../img/Formulario-Professor.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;
}

/* Cada quadrado */
.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;
}

/* Cores específicas */
.icon-box.aluno {
  background-color: #7d3cff;
}
.icon-box.profissional {
  background-color: #2ad300;
}
.icon-box.coordenador {
  background-color: #007bff;
}

/* Ícone da seta visível sempre */
.seta-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

/* Hover: expande e mostra ícone */
.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: nowrap;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
}

/* Imagem */
.image-forms {
  flex: 1;
  text-align: center;
  max-width: 100%;
}
.image-forms img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-top: 20px;
}

/* Formulário */
.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.5s ease forwards;
  opacity: 0;
}

/* ✨ Animação de surgimento */
@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: #632d2d;
  color: #ffffff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

.texto-forms {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #ccc;
  line-height: 1.6;
}

.link {
  margin-top: 10px;
  text-align: center;
}

.link a {
  color: #37dd9e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.link a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.text-destaque {
  font-size: 30px;
  font-weight: bold;
  color: #93ddff;
  margin-bottom: 10px;
}
/* === Responsividade aprimorada (Professor) === */
@media (max-width: 768px) {
  body {
    background-image: url("../img/Formulario-professor-responsivo.png") !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .main-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 20px;
  }

  .image-forms {
    display: none;
  }

  /* 🔥 Centralizado de forma correta */
  .form-container {
    width: 90%;
    max-width: 360px;
    padding: 25px 22px;
    background-color: rgba(42, 34, 61, 0.9);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease forwards;
  }

  .form-title {
    font-size: 1.9rem;
    text-align: center;
    margin-bottom: 20px;
  }

  .form-input {
    font-size: 0.95rem;
    padding: 10px;
  }

  .form-button {
    font-size: 1rem;
    padding: 10px;
    background-color: #632d2d;
  }

  .texto-forms {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 20px;
  }

  .text-destaque {
    font-size: 1.3rem;
    text-align: center;
  }
}

/* === Telas muito pequenas (até 480px) === */
@media (max-width: 480px) {
  .form-container {
    width: 95%;
    max-width: 340px;
    padding: 20px 15px;
  }

  .form-title {
    font-size: 1.8rem;
  }

  .form-input,
  .form-button {
    font-size: 0.9rem;
    padding: 9px;
  }

  .text-destaque {
    font-size: 1.1rem;
  }
}
