@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #fce988;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 15px;
}

.wrapper {
  max-width: 500px;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.wrapper .title {
  background: #333;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  padding: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.wrapper .title span {
  display: block;
  width: 100%;
  text-align: center;
}

.wrapper form {
  padding: 30px;
}

.wrapper form .row {
  height: 50px;
  margin-top: 15px;
  position: relative;
}

.wrapper form .row input {
  height: 100%;
  width: 100%;
  padding-left: 40px;
  border: 1px solid #999;
  border-radius: 4px;
  font-size: 15px;
  background-color: #fce988;
  color: #333;
}

.wrapper form .row input:focus {
  border-color: #333;
  outline: none;
}

.wrapper form .row i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #333;
}

.wrapper form .pass {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}

.wrapper form .pass a {
  color: #333;
  text-decoration: none;
}

.wrapper form .pass a:hover {
  text-decoration: underline;
}

.wrapper form .button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
}

.wrapper form .button input {
  padding: 12px 40px;
  background: #333;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.wrapper form .button input:hover {
  background: #555;
}


.wrapper form .button input:hover {
  background: #555;
}

.wrapper form .signup-link {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
}

.wrapper form .signup-link a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.wrapper form .signup-link a:hover {
  text-decoration: underline;
}
.linha {
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.voltar {
  font-size: 16px;
  text-decoration: none;
  color: #333;
  background-color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
  text-align: center;
}

.voltar:hover {
  background-color: #555;
  color: #fce988;
}

.voltar {
  margin-left: 10px;
}

/* Estilo para mensagens de erro */
.alert-error {
  background-color: #fdecea; /* vermelho claro */
  color: #b71c1c; /* vermelho escuro para texto */
  border: 1.5px solid #f44336; /* borda vermelha */
  padding: 15px 20px;
  margin: 15px auto;
  max-width: 400px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 3px 6px rgba(244, 67, 54, 0.3);
  text-align: center;
  animation: fadeIn 0.4s ease-in;
}

/* Animação suave para aparecer */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal: fundo escuro transparente */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none; /* oculto por padrão */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Conteúdo do modal */
.modal-content {
  background-color: #fdecea;
  border: 2px solid #f44336;
  padding: 25px 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
  text-align: center;
  font-family: 'Poppins', sans-serif;
  color: #b71c1c;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
}

/* Botão fechar */
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  font-weight: 700;
  color: #b71c1c;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.modal-close-btn:hover {
  color: #f44336;
}
