    @import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


    *{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Source Sans 3', sans-serif;
        text-decoration: none;
    }

header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
      
.logo img{
    margin-left: auto;
    width: 1500px;
    height: 80px;
    }
    
.container__menu{
        width: 100%;
        height: 50px;
        background: #016237;
        padding: 0px 0px;
    }

.menu{
        max-width: 100px;
        margin: auto;
        height: auto;
    }

body{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F0F4F3;
}
.container{
    margin-top: 100px;
    width: 800px;
    height: 500px;
    display: flex;
    position: relative;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 10px rgb(0, 0,0,0.3)
}
.container-form{
    width: 100%;
    overflow: hidden;
}
.container-form form{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease-in;
}
.container-form h2{
    font-size: 30px;
    margin-bottom: 20px;
}

.container-form span{
    font-size: 15px;
    margin-bottom: 15px;
}
.container-input{
    width: 300px;
    height: 60px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    background-color: #EEEEEE;
}
.container-input input{
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    background-color: inherit;
}
.container-form a{
    color: black;
    font-size:  14px;
    margin-bottom: 20px;
    margin-top: 5px;
}
.button{
    width: 170px;
    height: 45px;
    font-size: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;  
    background-color: #535453;  
    color: white;
}
/*Animacion del formulario*/

.sign-up{
    transform: translateX(-100%);
}
.container.toggle .sign-in{
    transform: translateX(100%);
}
.container.toggle .sign-up{
    transform: translateX(0);
}

.container-welcome{
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    transform: translateX(100%);
    background-color: #016237;
    transition: transform 0.5s ease-in-out, border-radius 0.5s ease-in-out;
    overflow: hidden;
    border-radius: 50% 0 0 50%;
}
.container.toggle .container-welcome{
    transform: translateX(0);
    border-radius: 0 50% 50% 0;
    background-color: #535453;
}
.container-welcome .welcome{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 50px;
    color: white;
    transition: transform 0.5s ease-in-out;
}
.welcome-sign-in{
    transform: translateX(100%);
}
.container-welcome h3{
    font-size: 40px;
}
.container-welcome p{
    font-size: 14px;
    text-align: center;
}
.container-welcome .button{
    border: 2px solid white;
    background-color: transparent;
}

.container.toggle .welcome-sign-in{
    transform: translateX(0);
}
.container.toggle .welcome-sign-up{
    transform: translateX(-100%);
}

.container-form.scrollable-form {
    height: 100%;
    overflow-y: auto;
    padding: 20px 0;
}

.container-input select {
    border-radius: 5%;
    outline: none;
    width: 100%;
    height: 100%;
    background-color: inherit;
    font-family: inherit;
    font-size: 14px;
    
}

/* Aqui va el diseño de la ventana */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-contenido {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 15px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.cerrar {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.cerrar:hover,
.cerrar:focus {
  color: black;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Diseño validador dentro de la ventana  */
.validador-container h1 {
  font-size: 26px;
  font-weight: bold;
}

.validador-container p {
  font-size: 16px;
  margin-top: 10px;
}

.icono-exclamacion {
  display: inline-block;
  background-color: black;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-weight: bold;
  line-height: 30px;
  margin: 20px auto;
  font-size: 18px;
}

.validador-form {
  background-color: #e3e3e3;
  max-width: 400px;
  margin: auto;
  border-radius: 20px;
  padding: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.validador-etiqueta {
  background-color: #e7410a;
  color: white;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}

.ejemplo {
  display: block;
  text-align: left;
  font-size: 12px;
  margin-bottom: 10px;
  color: #333;
}

.validador-input {
  display: flex;
  align-items: center;
  background-color: #f7f7f7;
  border-bottom: 2px solid #ea1a0b;
  padding: 8px 12px;
  margin-bottom: 20px;
}

.validador-input input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
}

.icono-ayuda {
  font-size: 18px;
  margin-right: 8px;
  color: #666;
}

.validador-btn {
  background-color: #ea1a0b;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.validador-btn:hover {
  background-color: #ea1a0b;
}

.mensaje-validacion {
  font-size: 12px;
  margin-top: 5px;
  color: red;
  display: block;
  text-align: left;
  padding-left: 10px;
}
.mensaje-validacion.valido {
  color: green;
}

#modalRespuesta .modal-contenido {
  padding: 40px;
  font-size: 18px;
}

.modal-contenido.apto {
  background-color: #d4edda;
  color: #155724;
  border-left: 10px solid #28a745;
  font-family: 'Source Sans 3', sans-serif;
}

.modal-contenido.apto h2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

.modal-contenido.apto p {
  font-size: 16px;
  margin: 5px 0;
  font-weight: 500;
  text-align: center;
}

.modal-contenido.no-apto {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 10px solid #dc3545;
  font-family: 'Source Sans 3', sans-serif;
}

.modal-contenido.no-apto h2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

.modal-contenido.no-apto p {
  font-size: 16px;
  margin: 5px 0;
  font-weight: 500;
  text-align: center;
}

.bloque-rojo {
  background-color: #e7410a;
  color: white;
  padding: 20px;
  border-radius: 25px;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

.modal-contenido.advertencia {
  margin: 5% auto;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 15px;
  background-color: #fff3cd;
  color: #856404;
  text-align: center;
  border-left: 10px solid #ffc107;
  font-family: 'Source Sans 3', sans-serif;
}

#modalRecuperar {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

#modalRecuperar .container-input {
  margin: 20px auto;
  width: 80%;
  max-width: 350px;
}


.cerrar-modal-recuperar {
  float: right;
  font-size: 25px;
  cursor: pointer;
  color: #aaa;
}

.cerrar-modal-recuperar:hover {
  color: black;
}

#modalTokenGenerado .modal-contenido {
  background: white;
  width: 90%;
  max-width: 700px; /* Aumentado para que quepa mejor el enlace */
  margin: 10% auto;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  word-wrap: break-word;        /* Rompe palabras largas */
  overflow-wrap: break-word;    /* Compatible con navegadores modernos */
  white-space: normal;          /* Asegura que no se mantenga en una sola línea */
}

#token-enlace {
  display: inline-block;
  word-break: break-all;        /* Rompe el texto largo del enlace */
  color: #6b00b3;               /* opcional: mejora la visibilidad */
  font-weight: bold;
  margin-top: 10px;
}

#modalResetPassword {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

#modalResetPassword .modal-contenido {
  background: white;
  width: 90%;
  max-width: 500px;
  margin: 10% auto;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
}

#modalResetPassword .container-input {
  margin: 20px auto;
  width: 80%;
  max-width: 350px;
}

.btn-volver-inicio {
  position: fixed;
  top: 150px; /* Ajusta si el header es más alto */
  left: 20px;
  background-color: #016237;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 10001;
  transition: background-color 0.3s ease;
}

.btn-volver-inicio:hover {
  background-color: #014726;
}

.modal-contenido.advertencia {
  background-color: #fff3cd;
  color: #856404;
  border-left: 10px solid #ffc107;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  font-family: 'Source Sans 3', sans-serif;
}

.modal-contenido.registro-exito {
  background-color: #d4edda;
  color: #155724;
  border-left: 8px solid #28a745;
}
