@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap');

body {
  background: #f8f9fa;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form_main,
.bg-wave {
  animation: loginFadeIn 500ms ease-out both;
}

.bg-wave {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
  z-index: 0;
  pointer-events: none;
}



.form_main {
  width: 260px;
  min-height: 380px;
  /* Reduced height for a more compact look */
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgb(255, 255, 255);
  padding: 25px;
  box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.062);
  position: relative;
  overflow: hidden;
  border-radius: 25px;
}

.buttons-container {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  z-index: 2;
  margin-top: 10px;
}

.form_main::before {
  position: absolute;
  content: "";
  width: 300px;
  height: 300px;
  background-color: #1e4ab1;
  /* Matching the site blue theme */
  transform: rotate(45deg);
  left: -180px;
  bottom: 0px;
  /* Adjusted to fit smaller height */
  z-index: 1;
  border-radius: 30px;
  box-shadow: 5px 5px 15px rgba(30, 74, 177, 0.2);
}


.logo {
  position: relative;
  z-index: 1;
  width: 160px;
  /* Reduced logo size */
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 10px;
  transform: none;
  top: auto;
  left: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.logo-header {
  position: relative;
  align-self: flex-start;
  margin-top: 20px;
  margin-left: 20px;
  margin-bottom: 20px; /* Controla el espacio entre logo y tarjeta aquí */
  width: 180px;
  height: auto;
  z-index: 10;
  transition: transform 0.3s ease;
}

.logo-header:hover {
  transform: scale(1.05);
}

.heading {
  font-size: 1.5em;
  color: #2e2e2e;
  font-weight: 700;
  margin: 5px 0 10px 0;
  z-index: 2;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  text-align: center;
  letter-spacing: 0.5px;

}

.inputContainer {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.inputIcon {
  position: absolute;
  left: 3px;
}

.inputField {
  width: 100%;
  height: 30px;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid rgb(173, 173, 173);
  margin: 10px 0;
  color: black;
  font-size: .8em;
  font-weight: 500;
  box-sizing: border-box;
  padding-left: 30px;
}

.inputField:focus {
  outline: none;
  border-bottom: 2px solid #1e4ab1;
}

.inputField::placeholder {
  color: rgb(80, 80, 80);
  font-size: 1em;
  font-weight: 500;
}

#button {
  z-index: 2;
  position: relative;
  width: 100%;
  border: 1px solid rgba(30, 74, 177, 0.3);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 38px;
  color: #1e4ab1;
  font-size: .9em;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 15px 0 10px 0;
  cursor: pointer;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(30, 74, 177, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

#button:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 74, 177, 0.3);
}

.btn_ir,
.btn_volver,
#button {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

.forgotLink {
  z-index: 2;
  font-size: .7em;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 20px;
}


.btn_ir {
  border-radius: 8px;

}

.btn_volver {
  z-index: 2;
  position: relative;
  width: 100%;
  border: 1px solid rgba(30, 74, 177, 0.3);
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 38px;
  color: #1e4ab1;
  font-size: .8em;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(30, 74, 177, 0.15);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn_volver:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  color: #1e4ab1;
  box-shadow: 0 6px 20px rgba(30, 74, 177, 0.25);
  border-color: #1e4ab1;
}