:root {
  --bg-color: #ffffff;
  --card-bg: #062d3a;
  --primary-color: #468189;
  --primary-hover: #3b6f75;
  --text-color: #f4e9cd;
  --input-bg: #0c3c4c;
  --input-border: #215866;
  --error-color: #ff4d4d;
  --success-color: #4dffb8;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
  
  body {
    background-color: var(--bg-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }

#login{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    width: 30vw;
    height: 35vw;
}

button {
    position: relative;
    border-radius: 7px;
    padding: 10px;
    border: 1px solid white;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    background: transparent;
    min-width: 10vw;
    max-width: 50vw;
    color: #fff;
    box-shadow: 0 0 0 0 transparent;
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
  }
  
  button:hover {
    background: #031926;
    box-shadow: 0 0 30px 5px #556269;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
  }
  
  button:hover::before {
    -webkit-animation: sh02 0.5s 0s linear;
    -moz-animation: sh02 0.5s 0s linear;
    animation: sh02 0.5s 0s linear;
  }
  
  button::before {
    content: '';
    display: block;
    width: 0px;
    position: absolute;
    top: 7%;
    left: 0%;
    opacity: 0;
    background: #fff;
    box-shadow: 0 0 50px 30px #fff;
    -webkit-transform: skewX(-20deg);
    -moz-transform: skewX(-20deg);
    -ms-transform: skewX(-20deg);
    -o-transform: skewX(-20deg);
    transform: skewX(-20deg);
  }
  
  @keyframes sh02 {
    from {
      opacity: 0;
      left: 0%;
    }
  
    50% {
      opacity: 1;
    }
  
    to {
      opacity: 0;
      left: 100%;
    }
  }
  
  button:active {
    box-shadow: 0 0 0 0 transparent;
    -webkit-transition: box-shadow 0.2s ease-in;
    -moz-transition: box-shadow 0.2s ease-in;
    transition: box-shadow 0.2s ease-in;
  }

  .input-container {
    position: relative;
    margin: 50px auto;
    width: 200px;
    color: white;
  }
  
  .input-container input[type="text"],
  .input-container input[type="email"],
  .input-container input[type="password"] {
    font-size: 12px;
    width: 100%;
    border: none;
    border-bottom: 2px solid #ccc;
    padding: 5px 0;
    background-color: transparent; /* <-- ESTA LÍNEA */
    outline: none;
    color: white;
  }
  
  .input-container .label {
    position: absolute;
    top: 0;
    left: 0;
    color: #ccc;
    transition: all 0.3s ease;
    pointer-events: none;
  }
  
  .input-container input[type="text"]:focus ~ .label,
  .input-container input[type="text"]:valid ~ .label,
  .input-container input[type="email"]:focus ~ .label,
  .input-container input[type="email"]:valid ~ .label,
  .input-container input[type="password"]:focus ~ .label,
  .input-container input[type="password"]:valid ~ .label {
    top: -20px;
    font-size: 16px;
    color: white;
  }
  
  .input-container .underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background-color: #333;
    transform: scaleX(0);
    transition: all 0.3s ease;
  }
  
  .input-container input[type="text"]:focus ~ .underline,
  .input-container input[type="text"]:valid ~ .underline,
  .input-container input[type="email"]:focus ~ .underline,
  .input-container input[type="email"]:valid ~ .underline,
  .input-container input[type="password"]:focus ~ .underline,
  .input-container input[type="password"]:valid ~ .underline {
    transform: scaleX(1);
  }

/* LOGIN */
.auth-container {
  display: flex;
  justify-content: center;
  flex-direction: row;
  min-height: 80vh;;
  perspective: 1000px;
}

.auth-card {
  display: flex;
  flex-direction: row;
  width: 30vw;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid white;
  padding: 2rem;
  border-radius: 10px;
  background: var(--card-bg);
  box-shadow: 0 10px 30px rgba(16, 51, 148, 2);
}

.auth-card.flipping {
  transform: rotateY(180deg);
}

.auth-form {
  display: flex;
  text-align: center;
  flex-wrap: wrap;
  backface-visibility: hidden;
  display: none;
  position: absolute;
  width: calc(100% - 4rem);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-form.active {
  display: block;
  opacity: 1;
  position: relative;
}

.toggle-auth {
  color: var(--text-color);
  font-size: 0.9rem;
}

.toggle-auth span {
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.toggle-auth span:hover {
  color: var(--primary-hover);
}

.auth-status {
  min-height: 1.5rem;
  font-size: 0.9rem;
}
#type-id, #type-id2{
  all: unset;
  border-bottom: 2px solid white;
  width: 10vw;
  padding: 5px;
  text-align: left;
  font-size: 16px;
}
.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-evenly;
}

.form-grid .input-container {
  flex: 0 0 calc(50% - 0.5rem);
}
#ventana-login{
  background-color: rgba(0, 0, 0, 0.9);
  position: fixed;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  z-index: 999;
  border: 1px solid white;
  display: none;
  width: 20vw;
  height: 20vw;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#ventana-recuperar{
  margin-left: 7vw;
  margin-top: -13vw;
  background-color: rgba(0, 0, 0, 1);
  position: fixed;
  justify-content: space-evenly;
  text-align: center;
  flex-direction: column;
  font-weight: 600;
  z-index: 999;
  border: 1px solid white;
  display: none;
  width: 15vw;
  height: 15vw;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#ventana-nueva{
  display: flex;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

@media (min-width: 1024px) and (max-width: 1500px) {
  .auth-card {
    flex-direction: column;
    padding: 0;
    align-items: center;
    justify-content: space-between;
    align-content: center;
  }

  .auth-form {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    font-size: 13px;
  }
  .auth-form.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    opacity: 1;
    position: relative;
  }

  .auth-form.active div{
    margin-top: 0.5vw;
  }
  .input-container input[type="text"]:focus ~ .label,
  .input-container input[type="text"]:valid ~ .label,
  .input-container input[type="email"]:focus ~ .label,
  .input-container input[type="email"]:valid ~ .label,
  .input-container input[type="password"]:focus ~ .label,
  .input-container input[type="password"]:valid ~ .label {
    font-size: 13px;
  }
  #ventana-login{
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    z-index: 999;
    border: 1px solid white;
    display: none;
    width: 20vw;
    height: 20vw;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  #ventana-recuperar{
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    margin-left: -1vw;
    margin-top: 5vw;
    width: 22vw;
    height: 22vw;
  }
  #ventana-nueva{
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
}

@media (max-width: 768px){
  .auth-card {
    flex-direction: column;
    padding: 0;
    align-items: center;
    justify-content: space-between;
    align-content: center;
    width:60vw;
  }

  .auth-form {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    font-size: 13px;
  }
  .auth-form.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    opacity: 1;
    position: relative;
  }

  .auth-form.active div{
    margin-top: 0.5vw;
  }
  .input-container input[type="text"]:focus ~ .label,
  .input-container input[type="text"]:valid ~ .label,
  .input-container input[type="email"]:focus ~ .label,
  .input-container input[type="email"]:valid ~ .label,
  .input-container input[type="password"]:focus ~ .label,
  .input-container input[type="password"]:valid ~ .label {
    font-size: 13px;
  }
  #ventana-login{
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    z-index: 999;
    border: 1px solid white;
    display: none;
    width: 20vw;
    height: 20vw;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  #ventana-recuperar{
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    margin-left: -1vw;
    margin-top: 5vw;
    width: 22vw;
    height: 22vw;
  }
  #ventana-nueva{
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
}
@media (max-width: 426px){
  .auth-card {
    flex-direction: column;
    padding-right: 30px;
    align-items: center;
    width: 90vw;
  }

  .auth-form {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    font-size: 13px;
  }
  .auth-form.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    opacity: 1;
    position: relative;
  }

  .auth-form.active div{
    margin-top: 0.5vw;
  }
  .input-container input[type="text"]:focus ~ .label,
  .input-container input[type="text"]:valid ~ .label,
  .input-container input[type="email"]:focus ~ .label,
  .input-container input[type="email"]:valid ~ .label,
  .input-container input[type="password"]:focus ~ .label,
  .input-container input[type="password"]:valid ~ .label {
    font-size: 13px;
}
  #ventana-login{
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    z-index: 999;
    border: 1px solid white;
    display: none;
    width: 20vw;
    height: 20vw;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  #ventana-recuperar{
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    margin-left: -1vw;
    margin-top: 5vw;
    width: 22vw;
    height: 22vw;
  }
  #ventana-nueva{
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
}