/* Aplicação global de box-sizing */
* {
  box-sizing: border-box;
}

/* Resetando margens e padding do body */
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: #121212;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
}

.container {
  background-color: #fafafa;
  border-radius: 14px;
  margin: 14px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.header {
  background: linear-gradient(120deg, #ffd078 0%, #fcba05 100%);
  padding: 24px;
  text-align: center;
  color: #FFF;
}

.form {
  padding: 18px;
}

.form-content {
  margin-bottom: 8px;
  padding-bottom: 18px;
  position: relative;
}

.form-content label {
  display: inline-block;
  margin-bottom: 4px;
}

.form-content input {
  display: block;
  width: 100%;
  border-radius: 8px;
  padding: 8px;
  border: 2px solid #dfdfdf;
  transition: border-color 0.3s ease;
  /* Transição suave para borda */
}

.form-content a {
  position: absolute;
  bottom: -8px;
  left: 0;
  visibility: hidden;
}

.form button {
  background-color: #f5d104;
  color: #FFF;
  width: 100%;
  border-radius: 14px;
  padding: 10px;
  border: 0;
  font-size: 16px;
  cursor: pointer;
  margin-top: 14px;
  transition: background-color 0.3s ease;
  /* Transição suave para fundo do botão */
}

/* Estilo para campos com erro */
.form-content.error input {
  border-color: #ff3b25;
}

.form-content.error a {
  color: #ff3b25;
  visibility: visible;
}

/* Foco nos campos de entrada */
.form-content input:focus {
  border-color: #fcba05;
  /* Borda dourada ao focar no campo */
  outline: none;
  /* Remove o outline padrão */
}

/* Estilos responsivos para telas pequenas */
@media screen and (max-width: 600px) {
  .container {
    margin: 10px;
  }

  .header {
    font-size: 18px;
  }

  .form-content input {
    padding: 10px;
    /* Aumentando o padding em telas pequenas */
  }
}