@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,500;0,700;0,900;1,300;1,500;1,700;1,900&display=swap');
/*@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");*/
      :root {
        --text-dark: hsl(240, 54%, 15%);
        --text-light: hsl(242, 18%, 64%);
        --primary: hsl(222, 98%, 60%);
        --primary-lighter: hsl(240, 33%, 86%);
        --primary-gradient: linear-gradient(to right, #3671fd, #6f31ff);
      }

      *,
      *::before,
      *::after {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      a,
      button {
        all: unset;
        cursor: pointer;
      }

      img {
        width: 100%;
        height: 100%;
        display: block;
      }

      body {
        font-family: 'Nunito', sans-serif;
        min-height: 100vh;
        background-color: #869ec1; /* Color de fondo predeterminado */
        background-image: url('../img/fondo-login2.jpg'), linear-gradient(#869ec1, #869ec1); /* Si no se encuentra la imagen, usa el gradiente de color */
        background-size: cover;
        background-position: center;
        display: flex;
        justify-content: center;
      }

      .container {
        max-width: 1070px;
        width: 100%;
        display: flex;
        margin-inline: 1rem;
        border-left: 3px solid #808080;
        border-right: 3px solid #808080;
      }    
      .image-section {
        width: 50%;
        position: relative;        
      }
      .image-wrapper {
        width: 100%;
        height: 100%;
      }
      .image-wrapper img {
        object-fit: cover;
      }

      .content-container {
        background-color: hsla(0, 0%, 100%, 0.1999);
        backdrop-filter: blur(5px);
        padding: 2rem;
        width: 80%;
        color: var(--text-dark);
        border-radius: 4px;
        border: 1px solid hsl(0 100% 100% / 0.3);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
      .content-container h1 {
        font-weight: 600;
        font-size: 2.0rem;
        margin-bottom: 1rem;
      }
      .content-container span {
        background: var(--primary-gradient);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
      .content-container .section-heading{
        text-align: center;
      }
      #mensajelogin{
        display: block;
        margin: 10px 0;
        color:brown;
        font-size: 16px;
        
      }
      .cargaloading{
        width: 60px;
      }

      @media screen and (max-width: 60rem) {
        .container {
          width: 100%;
          margin: 0;
        }
        .content-container {
          width: 100%;
        }
        img{
            min-height: 60%;
        }
      }

      .form-section {
        width: 50%;
        background-color: white;
        padding: 2.5rem 1rem;
        display: flex;
        align-items: center;
      }

      .form-wrapper {
        width: 75%;
        margin: 0 auto;
      }

      .logo-container {
        width: 3rem;
        height: 3rem;
        margin-bottom: 2.2rem;
      }

      .form-wrapper > h2 {
        margin-bottom: 0.1rem;
      }
      .form-wrapper > p {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-light);
        margin-bottom: 2rem;
      }

      .input-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
      }

      .form-group {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
      }
      .form-group label {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #16164d;
      }
      .form-group input {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-dark);
        padding: 0.5rem;
        border: 2px solid var(--primary-lighter);
        border-radius: 0.3rem;
      }
      .form-group input:focus {
        border: 2px solid #16164d;
      }

      .remember-forgot {
        display: flex;
        justify-content: space-between;
        font-size: 0.875rem;
        font-weight: 500;
        margin-bottom: 1rem;
      }

      .remember-me {
        display: grid;
        grid-template-columns: 1rem auto;
        gap: 0.6rem;
      }

      input[type="checkbox"] {
        -webkit-appearance: none;
        appearance: none;
        display: grid;
        place-content: center;
      }

      .remember-me input {
        width: 1rem;
        height: 1rem;
        margin-right: 0.3rem;
        border: 1px solid var(--text-light);
        border-radius: 2px;
      }

      input[type="checkbox"]::before {
        content: "";
        width: 0.65em;
        height: 0.65em;
        background-color: white;
        transform: scale(0);
        transform-origin: bottom left;
        clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
        transition: 120ms transform ease-in-out;
        box-shadow: inset 1em 1em var(--form-control-color);
      }

      input[type="checkbox"]:checked::before {
        transform: scale(1);
      }
      .remember-me input:checked {
        background: var(--primary-gradient);
      }

      .remember-me label {
        color: var(--text-dark);
        user-select: none;
      }
      .remember-forgot a {
        color: var(--primary);
      }
      .remember-forgot a:hover {
        text-decoration: underline;
        text-decoration-color: var(--primary);
      }

      .login-btn {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.6rem;

        font-weight: 500;
        padding: 0.5rem 0;
        border-radius: 0.5rem;
      }

      .login-btn {
        color: white;
        background: var(--primary-gradient);
      }
      .login-btn:hover {
        opacity: 0.9;
      }


      

      @media screen and (max-width: 50rem) {
        .container {
          max-width: 80%;
          flex-direction: column;
          margin-inline: 0;          
        }
        .form-section {
          width: 100%;     
          align-items: flex-start;
          
        }
        
        .image-section {
          width: 100%;     
               
        }

        
        .image-section .logoimg{
            height: 80%;
            width: auto;            
        }
        .content-container {
          inset: 0;
          transform: translate(0, 0);
          padding: 1rem 1.6rem;
          text-align: center;
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          
        }
        .content-container h1 {
          font-size: 1.4rem;
          font-weight: 700;
          margin-bottom: 0.5rem;
          
        }
        .content-container p {
          font-size: 0.75rem;
          
        }

        .form-section {
          flex: 1;
          padding: 1rem 1rem;          
          
        }
        .logo-container {
          margin-bottom: 1rem;
        }
        .form-wrapper > h2 {
          font-size: 1.25rem;
        }
        .form-wrapper > p {
          margin-bottom: 1rem;
        }
        .form-wrapper button {
          font-size: 0.875rem;
        }
        
      }

      @media screen and (max-width: 36.25rem) {
        .container {
          max-width: 100%;          
        }
        .form-wrapper { 
          width: 100%;
          
        }
        
      }