html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-size: cover;       
  background-repeat: no-repeat; 
  background-position: center; 
  background-attachment: fixed; 
  overflow: hidden;  
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat';
  text-decoration: none;
}

/* Alineación para el logo y enlaces */
.logo img {
  height: 100px;
  max-width: 100%; /* Asegura que el logo no desborde el contenedor */
  margin-top: -10px;
  margin-left: -20px;
}


/* Estilos base para el contenedor del menú */
.container__menu {
  width: 100%;
  height: 70px;
  background: #03519E;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  margin-top: 1%;
}

nav > ul {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  list-style: none;
  width: 100%;
}

nav ul li {
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0 10px;
}

nav ul li a {
  display: flex;
  justify-content: flex-end;
  color: black;
  text-transform: uppercase;
  font-size: 1rem;
  transition: all 300ms ease;
  white-space: nowrap;
}



.usuario, .salir {
  color: white;
  padding: 14px 20px;
  font-size: 1rem; 
  transition: all 300ms ease;
  margin: 0 5px; 
}


.usuario:hover, .salir:hover {
  background: #D9251D;
  color: white;
  transform: scale(1.1);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

#selected {
  background: #D9251D;
  color: white;
  transform: scale(1.1);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}


/* Ajuste del tamaño en pantallas medianas */
@media (max-width: 1200px) {
  .usuario, .salir {
    font-size: 0.9rem;
  }
}

/* Ajuste del tamaño en pantallas pequeñas */
@media (max-width: 992px) {
  .usuario, .salir {
    font-size: 0.8rem;
  }
}

/* Ajuste del tamaño en pantallas muy pequeñas */
@media (max-width: 768px) {
  .usuario, .salir{
    font-size: 0.75rem;
  }
}

/* Ajuste del tamaño en pantallas extra pequeñas */
@media (max-width: 576px) {
  .usuario, .salir{
    font-size: 0.7rem;
  }
}
@media (max-width: 500px) {

  .container__menu {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
    height: auto;
  }

  .usuario, .salir {
    font-size: 0.8rem;
    padding: 10px 15px;
    margin-top: -20%;
  }

  nav ul li {
    margin: 10px;
  }

  .logo img {
    max-width: 250px;
  }
}

@media (max-width: 410px) {
  .container__menu {
    width: 100%;
    padding: 0px 5px;
  }

  .usuario, .salir {
    font-size: 0.7rem;
    padding: 8px 10px;
  }
}

@media (min-width: 700px) and (max-width: 2200px)  {
  @media (min-height: 1000px) and (max-height: 1400px)  {
    .container__menu {
      height: auto;
      padding: 0 30px;
    }

    .usuario, .salir {
      padding: 14px 20px;
      font-size: 1.3rem; 
    }

    }
  }
  
  .contenedor{
    width: 75%;
    height: auto; 
    min-height: 75%; 
    max-height: 80%;
    background-image: url(fondo_recu.png);
    background-size: cover;       
    background-repeat: no-repeat; 
    background-position: center; 
    background-attachment: fixed; 
    box-shadow: 0 10px 25px rgb(23, 43, 80), 0 15px 50px rgba(0, 0, 0, 0.2); 
    position: absolute; 
    top: 17%; 
    left: 50%; 
    transform: translateX(-50%); 
    padding: 20px;
    overflow: hidden;
    }

    @media (max-width: 500px) {
      .contenedor{
        top: 25%;
      }

    }
    


h2 {
  margin: 0 auto;  
  font-size: 1.5rem;            
  text-align: center;     
  margin-top: 25px;     
}


.form-container {
  width: auto;
  width: 35%;
  max-width: 800px;            
  height: auto;  
  min-height: 65%;              
  margin: 20px auto;    
  margin-left: 5%;   
  padding: 20px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgb(23, 43, 80), 0 15px 50px rgba(0, 0, 0, 0.2); 
  transition: transform 2s ease-out;
  animation: formulario 1s ease-out forwards;
}

.form-container{
  margin-top: 10vh;
}

@media (max-width: 1024px) {
  .form-container {
    width: 50%;         
    margin: 20px auto;
  }
  .form-container{
    margin-top: 8vh; 
}
}

/* Para pantallas pequeñas */
@media (max-width: 768px) {
  .form-container {
    width: 80%;
    padding: 15px;
  }
}

/* Para pantallas extra pequeñas */
@media (max-width: 576px) {
  .form-container {
    width: 90%;
    padding: 10px;
  }
}

.form-group {
  position: relative;
 }

 .email_recuperar{
  width: 100%;
  margin-top: 25px;
  border: 1px solid #D9DEE2;
  border-radius: 1rem;
  background: none;
  padding: 0.9rem;
  font-size: 0.9rem;
  color: #000000;
  transition: border 150ms cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 10px 20px rgb(125, 163, 233), 0 10px 20px rgba(0, 0, 0, 0.2);
 }

 .email-label {
  position: absolute;
  transform: translateY(2.5rem);
  left: 80px;
  font-weight: 600;
  pointer-events: none;
  transition: 300ms cubic-bezier(0.4,0,0.2,1);
  color: #666;
 }

 .email_recuperar:focus, input:valid {
  outline: none;
  border: 1.5px solid #1a73e8;
 }

 .email_recuperar:focus ~ .email-label,
 .email_recuperar:not(:placeholder-shown) ~ .email-label,
 .email_recuperar:valid ~ .email-label {
  left: 0.5%;
  transform: translateY(80%) scale(0.8);
  background-color: #fff;
  padding: 0 .2em;
  color: #03519E;
 }

 @media (min-width: 1440px) {
  .email-label {
    left: 15px;
}
}

@media (max-width: 1260px) {
  .email-label {
    left: 15px;
}
}

 button {
  background: #01265C;
  color: #fff;
  border: none;
  height: 33px;
  font-size: 1.1em;
  padding: 0 2em;
  box-shadow: 0 10px 20px rgb(125, 163, 233), 0 10px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: 800ms ease all;
  outline: none;
  display: block;
  position: relative;
  margin: 30px auto; 
  max-width: 200px; 
  width: 100%; 
}

button:hover{
  background:#fff;
  color:#01265C;
}
button:before,button:after{
  content:'';
  position:absolute;
  top:0;
  right:0;
  height:2px;
  width:0;
  background: #01265C;
  transition:400ms ease all;
}
button:after{
  right:inherit;
  top:inherit;
  left:0;
  bottom:0;
}
button:hover:before,button:hover:after{
  width:100%;
  transition:800ms ease all;
}


.alert-container {
width: 80%;
height: 10%;
background-color: #D9251D;
color: #000;
border-radius: 10px;
z-index: 2000;
padding: 10px;
display: flex;
align-items: center;
justify-content: center;
margin-left: auto;
margin-right: auto;
position: relative;
margin-top: 10%;
animation: slideDown 1s ease-out;
}

@keyframes slideDown {
0% {
    transform: translateY(-40%);
}
100% {
    transform: translateY(0);
}
}

.alert {
display: flex;
align-items: center;
font-size: 16px;
color: white;
}

.alert img {
width: 20px;
height: 20px;
margin-right: 10px; 
}

