@import url("https://fonts.googleapis.com/css2?family=Kalnia:wght@100..700&family=Kanit:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Kanit', sans-serif;
}

body {
  background: linear-gradient(135deg, #9454ac, #7c3d96);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 15px;
  animation: bgFade 1.5s ease-out;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

.tela-form {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.container {
  background-color: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  box-shadow: 0px 15px 50px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.8s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 35px 30px;
  overflow: hidden;
}

.img-login-logo {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
  animation: float 6s infinite ease-in-out;
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

form > h1 {
  color: #2b134b;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.8rem;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.05);
}

label {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

input[type="text"],
input[type="password"] {
  margin-top: 10px;
  padding: 15px 15px 15px 15px;
  border-radius: 15px;
  border: none;
  background-color: #f0f0f0;
  width: 100%;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  color: #333;
}

input:focus {
  outline: 2px solid #9454ac;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(148, 84, 172, 0.4);
}

/* Adição do estilo do botão de ver e esconder senha */

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input {
  width: 100%;
  padding-right: 40px;
  /* espaço para o olho */
}

.input-wrapper i {
  position: absolute;
  top: 70%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 18px;
  cursor: pointer;
  color: #666;
}


.links-auxiliares {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links-auxiliares a {
  text-align: center;
  font-size: 14px;
  color: #7c3d96;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.links-auxiliares a:hover {
  color: #2b134b;
}

.links-auxiliares a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #7c3d96;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.links-auxiliares a:hover::after {
  width: 100%;
}

button {
  width: 100%;
  margin-top: 25px;
  padding: 16px 0;
  border-radius: 15px;
  border: none;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to right, #9454ac, #7c3d96);
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 5px 15px rgba(158, 139, 182, 0.4);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

button:hover {
  background: #7c3d96;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(158, 139, 182, 0.6);
}

.social-login {
  margin-top: 30px;
  text-align: center;
}

.social-login p {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  position: relative;
}

.social-login p::before,
.social-login p::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: #ddd;
}

.social-login p::before {
  left: 0;
}

.social-login p::after {
  right: 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #7c3d96;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.social-icons a:hover {
  transform: translateY(-5px);
  background: #7c3d96;
  color: white;
  box-shadow: 0 5px 15px rgba(124, 61, 150, 0.4);
}

/* Responsivo */
@media (max-width: 768px) {
  .container {
    max-width: 90%;
    padding: 25px 20px;
  }

  .img-login-logo {
    width: 80px;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 25px 15px;
  }

  form > h1 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  input[type="text"],
  input[type="password"] {
    padding: 14px;
    font-size: 14px;
  }

  button {
    padding: 15px 0;
  }

  .img-login-logo {
    width: 70px;
    margin-bottom: 10px;
  }
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bgFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.error-message {
  color: #ff4d4d;
  font-size: 13px;
  margin-top: 8px;
  display: none;
  animation: slideDown 0.3s ease-out;
  padding: 8px 12px;
  background-color: #fff0f0;
  border-radius: 8px;
  border-left: 3px solid #ff4d4d;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
