html, body {
    height: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
  }
  .swal2-popup{
    font-size:0.7rem !important;
  }
  #namesistem{
    font-size: 10px;
  }
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #1abb9c; /* fallback */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 0;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
    pointer-events: none;
  }

  .login-container {
    background: rgba(255 255 255 / 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 400px;
    padding: 30px 40px;
    text-align: center;
    z-index: 1;
    position: relative;
  }

  .login-logo {
    margin-bottom: 25px;
  }

  .login-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
  }

  .welcome-message {
  
    margin-bottom: 18px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #1abb9c44;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    min-height: 36px; /* space for messages */
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 6px 12px;
    border-radius: 8px;
  }
  .welcome-message.success {
    color: #155724;
    background-color: #d4edda;
    box-shadow: 0 0 8px #28a74588;
  }
  .welcome-message.error {
    color: #721c24;
    background-color: #f8d7da;
    box-shadow: 0 0 8px #dc354588;
  }

  h2 {
    color: #1a5e4a;
    margin-bottom: 30px;
    font-weight: 600;
  }

  .input-group {
    position: relative;
    margin-bottom: 25px;
  }

  .input-group input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    border: 2px solid #1abb9c;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    background: white;
  }

  .input-group input:focus {
    border-color: #16a085;
    box-shadow: 0 0 8px #16a085aa;
  }

  .input-group .fa {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #1abb9c;
    font-size: 18px;
    user-select: none;
  }

  .btn-login {
    background-color: #1abb9c;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    width: 100%;
    padding: 14px 0;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 5px 15px rgba(26,187,156,0.5);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .btn-login:hover:not(:disabled) {
    background-color: #16a085;
    box-shadow: 0 7px 20px rgba(22,160,133,0.7);
  }

  .btn-login:disabled {
    background-color: #12846a;
    cursor: not-allowed;
    box-shadow: none;
  }

  /* Small spinner for loading */
  .spinner {
    border: 3px solid #ffffffaa;
    border-top: 3px solid white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
  }

  .forgot-password {
    display: block;
    margin-top: 5px;
    color: #1abb9c;
    font-size: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
  }
  .forgot-password:hover {
    color: #16a085;
    text-decoration: underline;
  }

  @media (max-width: 480px) {
    .login-container {
      padding: 25px 15px;
    }
    .login-logo img {
      width: 60px;
      height: 60px;
    }
    .welcome-message {
      font-size: 1.1rem;
    }
  }
  .online-registration {
margin-top: 30px;
text-align: center;
}

.online-registration {
margin-top: 35px;
text-align: center;
}

.online-registration h2 {
color: #1a5e4a;
font-weight: 600;
margin-bottom: 16px;
font-size: 1.18rem;
letter-spacing: 1px;
}

.btn-registration {
display: inline-flex;
align-items: center;
gap: 12px;
padding: 13px 35px;
border: none;
border-radius: 50px;
font-size: 17px;
font-weight: 600;
background: linear-gradient(90deg, #ff8c42 0%, #1abb9c 100%);
color: #fff;
box-shadow: 0 5px 18px rgba(255,60,111,0.22);
cursor: pointer;
transition: background 0.4s, transform 0.2s, box-shadow 0.2s;
outline: none;
position: relative;
overflow: hidden;
}

.btn-registration:hover, .btn-registration:focus {
background: linear-gradient(90deg, #ff3c6f 0%, #ff8c42 100%);
transform: translateY(-2px) scale(1.03);
box-shadow: 0 8px 24px rgba(255,60,111,0.32);
}

.reg-icon {
display: flex;
align-items: center;
justify-content: center;
background: rgba(255,255,255,0.17);
border-radius: 50%;
width: 32px;
height: 32px;
font-size: 1.3em;
box-shadow: 0 2px 8px #ff8c4244;
margin-right: 6px;
}

.btn-registration i {
color: #fff;
}

#authForm {
    display: flex;                /* Usar Flexbox para centrar */
    flex-direction: column;      /* Alinear los elementos en columna */
    align-items: center;         /* Centrar horizontalmente */
    justify-content: center;     /* Centrar verticalmente */
    text-align: center;          /* Centrar el texto dentro del div */
   
     z-index: 1000; /* Asegúrate de que sea mayor que otros elementos */
}

#loginButton:hover {
    background-color: #1ABB9C; /* Color al pasar el ratón sobre el botón */
}
#authForm {
    display: none; /* Ocultar el formulario inicialmente */
    position: fixed; /* Posición fija para que se mantenga en la vista */
    top: 50%; /* Centrado verticalmente */
    left: 50%; /* Centrado horizontalmente */
    transform: translate(-50%, -50%); /* Ajuste para centrar completamente */
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
   width: 300px;
}
.logo-cpanel {
    max-width: 80%; /* Ancho máximo del logo para que sea responsivo */
    height: auto; /* Mantiene la proporción del logo */
    margin-bottom: 20px; /* Espacio debajo del logo */
}
h2 {
    font-size: 1.5em; /* Tamaño de fuente responsivo para el título */
    margin-bottom: 20px; /* Espacio debajo del título */
}
.input-auth {
    width: calc(100% - 20px); /* Ancho completo menos el padding */
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.btn-auth {
    width: 100%;
    padding: 10px;
    background-color: #1ABB9C;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
     width: calc(100% - 20px);
}
.btn-auth:hover {
     width: calc(100% - 20px);
    background-color: #1ABB9C; /* Color al pasar el ratón sobre el botón */
}

   .toggle-password {
  position: absolute;
  top: 50%;
  right: 20px; 
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: #1abb9c;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 24px;
  height: 24px;
}
.error-message {
    color: red; /* Color rojo para el mensaje de error */
    margin-top: 10px; /* Espacio encima del mensaje de error */
}
.closeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}