/* Start Global rules */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* End Global rules */

/* Start body rules */
body {
  font-family: 'Inter', helvetica, arial, sans-serif;
  background: #fff;

}

/* End body rules */

/* Overlay */

.overlay {
  position: relative;
  z-index: 2;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  margin: 2vh;
  border-radius: 20px;
  background: url("../img/bg-art.webp") no-repeat center/cover;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;

}

.overlay form,
.overlay .card-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-text.navbars {
  padding: 0;
}

/* Start Header Topbar */

.header {
  position: absolute;
  width: 100%;
  top: 0;
  padding: 20px;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  /* animación escalonada */
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
}

.logo a {
  position: relative;
}
.logo a:active {
  position: relative;
  top: 2px;
}

/* End Header Topbar */
.container {
  background: rgba(255, 237, 230, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 237, 230, 0.2);
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.4s;
}

.container.infos {
  background: rgba(255, 255, 255, 0.8);

}

/* Start the header card */
.head-form {
  width: 100%;
  display: block;
  margin-bottom: 24px;
}

/* Title form */
.head-form h1 {
  font-size: 24px;
  color: #151413;
  position: relative;
  margin-bottom: 5px;
}

.head-form .fa {
  position: relative;
  top: 5px;
  font-size: 40px;
  margin-bottom: 5px;
}

/*  A welcome message or an explanation of the login form */
.card-text p {
  margin-bottom: 20px;
  color: #876;
  line-height: 150%;
}

.card-text .help-message {
  color: #454443;
  text-align: left;
}

/* End the header card */

/* =========== START FORMS =========== */

/* Label Forms / Accesibility */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  /* fallback */
  clip-path: inset(50%) !important;
  /* modern */
  white-space: nowrap !important;
  /* avoid wraps */
  border: 0 !important;
}

/* End Label Forms */


.input-group {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 20px;
  color: #C1B8B0;
}

.input-group .icon {
  margin-right: 8px;
}

/* inputs form  */

input,
button {
  font-family: 'Inter', helvetica, arial, sans-serif;
}

.container input {
  width: 100%;
  margin: 6px 20px;
  font-size: 15px;
  color: #654;
  outline: none;
  border: none;
  border-radius: 0px 5px 5px 0px;
  transition: 0.2s linear;

}

.error {
  display: none;
  animation: slideDown 0.3s ease-out;
}

.error.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.yourFormCustomContainer button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.card-text .error {
  font-size: 15px;
  color: #f7dede;
  border: 1px solid #a00;
  border-radius: 5px;
  background: #a00;
  padding: 8px 16px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  animation: fadeInUp 1s ease forwards;
  margin-bottom: 0;
}

.card-text .error.show {
  opacity: 1;
  max-height: 200px;
  /* suficiente para el contenido */
  margin-bottom: 16px;
}

.card-text .error.hiding {
  animation: fadeOutBottom 0.5s ease forwards;
}

/* focus  */
.container input:focus {
  transform: translateX(-3px);
}

.input-group:focus-within .icon {
  color: #654;
  /* icon cuando el input está en focus */
}

/* placeholder  */
::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: #C1B8B0;
}

::-moz-placeholder {
  /* Firefox 19+ */
  color: #C1B8B0;
}

:-ms-input-placeholder {
  /* IE 10+ */
  color: #C1B8B0;
}

:-moz-placeholder {
  /* Firefox 18- */
  color: #C1B8B0;
}

/* input[type="text"] {min-width: 250px;} */
/* buttons  */
.container button {
  display: inline-block;
  color: #151413;
  width: 280px;
  height: 50px;
  padding: 0 20px;
  background: #fff;
  border-radius: 50px;
  outline: none;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s linear;
  font-weight: 600;
  margin: 15px auto 5px;
}

.container button:focus {
  border: 1px solid #987;
  /*, .container .input-group:focus-within*/
}

.success-container {
  display: flex;
  flex-direction: column;
  /* apila verticalmente */
  align-items: center;
  /* centra horizontalmente */
  gap: 5px;
  /* espacio entre check y texto */
}

.check-container {
  width: 100px;
  height: 120px;
  /* un poco más alto */
}

.check {
  fill: none;
  stroke: #4CAF50;
  stroke-width: 4;
  /* más fino */
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 1s forwards ease-in-out;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.message {
  font-size: 1.2rem;
  color: #333;
  opacity: 0;
  animation: fadeIn 1s forwards;
  animation-delay: 1s;
  text-align: center;
}

@media (max-width: 480px) {
  .container {
    padding: 20px 10px;
  }
}


/* === ANIMACIONES === */
/* buttons hover */
.container button:hover {
  transform: translatey(1px);
  box-shadow: none;
  animation: bounce 0.4s ease-in-out infinite alternate;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutBottom {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes bounce {
  0% {
    transform: translateY(3px);
  }

  100% {
    transform: translateY(5px);
  }
}