* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #e9e4e9;
}

body.pagina-recuperar {
  background-color: #f5f5f5 !important;
}

/* Contenedor general */
.container-general {
  max-width: 1300px;
  margin: auto;
  padding: 28px;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Caja principal */
.contenedor {
  display: flex;
  width: 100%;
  max-width: 1000px;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 23px rgba(0, 0, 0, 0.15);
  background-color: #fff;
}

/* Lado izquierdo */
.lado-izquierdo {
  width: 35%;
  background-color: #4c1647;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  position: relative;
}
.lado-izquierdo h2{
  font-size:36px;
  margin: 180px 0 0px
}
.lado-izquierdo p {
  font-size: 25px;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 40px;
  font-family: monospace;
}
.lado-izquierdo p2{
  margin: 180px 0 0px;
  font-family:'Courier New', Courier, monospace;
  text-align: center;
  font-size: 30px;
}
.logo {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 250px;
}

.img-comp {
  width: 80%;
  max-width: 220px;
  margin-top: auto;
}

.inicio {
  width: 65%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.formulario {
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 50px 40px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
}

.formulario img.avatar {
  width: 140px;
  margin-bottom: 25px;
}

.formulario input {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.recuperar {
  margin: 10px 0 20px;
  text-align: center;
}

.recuperar a {
  font-size: 13px;
  color: #4c2260;
  text-decoration: none;
}

.recuperar a:hover {
  text-decoration: underline;
}

.boton {
  color: white;
  border: none;
  padding: 14px;
  width: 100%;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  background-color: #4c1647;
}

.formulario a.boton {
  display: block;
  margin: 10px 0;
  text-align: center;
  text-decoration: none;
}

.formulario-login .campo-formulario {
  text-align: left;
  margin-bottom: 16px;
}

.formulario-login label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #333;
}

.formulario ul li {
  margin: 12px 0;
}

.formulario ul li .boton {
  display: block;
  text-align: center;
  padding: 12px;
  background-color: #4c1647;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.35s;
}

.formulario ul li .boton:hover {
  background-color: #361139;
}

 @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes slideInLeft {
      from {
        opacity: 0;
        transform: translateX(-50px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes slideInRight {
      from {
        opacity: 0;
        transform: translateX(50px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes pulse {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.05);
      }
    }

    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-5px); }
      75% { transform: translateX(5px); }
    }

    @keyframes float {
      0%, 100% {
        transform: translateY(0);
      }
      50% {
        transform: translateY(-10px);
      }
    }

    /* Aplicar animaciones */
    .lado-izquierdo {
      animation: slideInLeft 0.8s ease-out;
    }

    .inicio {
      animation: slideInRight 0.8s ease-out;
    }

    .logo {
      animation: fadeIn 1s ease-out;
    }

    .lado-izquierdo h2 {
      animation: fadeIn 1.2s ease-out;
    }

    .lado-izquierdo p {
      animation: fadeIn 1.4s ease-out;
    }

    .img-comp {
      animation: float 3s ease-in-out infinite;
    }

    .avatar {
      transition: transform 0.3s ease;
    }

    .avatar:hover {
      animation: pulse 0.6s ease;
    }

    .formulario input {
      transition: all 0.3s ease;
    }

    .formulario input:focus {
      transform: scale(1.02);
      border-color: #4c1647;
      box-shadow: 0 0 8px rgba(76, 22, 71, 0.3);
    }

    .boton {
      transition: all 0.3s ease;
    }

    .boton:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(76, 22, 71, 0.4);
      background-color: #361139;
    }

    .boton:active {
      transform: translateY(0);
    }

    .recuperar a {
      transition: color 0.3s ease;
    }

    .error-message {
      animation: shake 0.5s ease;
    }

    /* Media Queries para Responsividad */
    @media (max-width: 768px) {
      .container-general {
        padding: 15px;
        height: auto;
        min-height: 100vh;
      }

      .contenedor {
        flex-direction: column;
        height: auto;
        max-width: 100%;
      }

      .lado-izquierdo {
        width: 100%;
        padding: 30px 20px;
        min-height: 300px;
      }

      .lado-izquierdo h2 {
        font-size: 28px;
        margin: 20px 0 0;
      }

      .lado-izquierdo p {
        font-size: 18px;
        margin: 20px 0;
      }

      .logo {
        width: 180px;
      }

      .img-comp {
        display: none;
      }

      .inicio {
        width: 100%;
        padding: 30px 20px;
      }

      .formulario {
        padding: 30px 20px;
        box-shadow: none;
      }

      .formulario img.avatar {
        width: 100px;
        margin-bottom: 20px;
      }

      .formulario input {
        padding: 10px;
        font-size: 14px;
      }

      .boton {
        padding: 12px;
        font-size: 15px;
      }
    }

    @media (max-width: 480px) {
      .container-general {
        padding: 10px;
      }

      .lado-izquierdo h2 {
        font-size: 24px;
      }

      .lado-izquierdo p {
        font-size: 16px;
      }

      .logo {
        width: 150px;
      }

      .formulario {
        padding: 20px 15px;
      }

      .formulario img.avatar {
        width: 80px;
      }

      .formulario input {
        padding: 8px;
        font-size: 13px;
        margin: 8px 0;
      }

      .recuperar a {
        font-size: 12px;
      }

      .boton {
        padding: 10px;
        font-size: 14px;
      }
    }

    @media (min-width: 769px) and (max-width: 1024px) {
      .contenedor {
        max-width: 900px;
        height: 550px;
      }

      .lado-izquierdo h2 {
        font-size: 32px;
      }

      .lado-izquierdo p {
        font-size: 22px;
      }

      .formulario {
        padding: 40px 30px;
      }
    }




