* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html, body {
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    position: relative; 
    overflow-x: hidden; 
  }

  #particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
  }

  .container {
    display: flex;
    height: 100vh;
    position: relative; 
    z-index: 1;
  }

  /* PANEL IZQUIERDO */
  .left {
    flex: 1;
    position: relative;
    background-image: url('img/login/background_celeste.png'), linear-gradient(to right, rgba(47, 121, 223, 0.85), rgba(199, 234, 255, 0.75));
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center center;
    background-size: cover, cover;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; 
  }

  .left-content {
    width: 100%;
    max-width: 1000px;
    padding-top: 100px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; 
  }

  .navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 30px 40px; 
    gap: 30px; 
    z-index: 10;
    justify-content: center;
    flex-wrap: wrap; 
  }

  .navbar .logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap;
  }

  .navbar .nav-links {
    display: flex;
    gap: 20px; 
    font-size: 0.95rem;
    flex-wrap: wrap;
  }


  .navbar .nav-links a {
    text-decoration: none;
    color: #ffffffcc;
    font-weight: 500;
    transition: 0.3s ease;
  }

  .navbar .nav-links a:hover {
    color: #ffffff;
  }

  .navbar .nav-links a.active {
    font-weight: bold;
    text-decoration: underline;
    color: #fff;
  }

  .text-box {
    max-width: 600px;
    margin-bottom: 30px;
    z-index: 2;
  }

  .text-box h1 {
    font-size: 3.2rem; 
    font-weight: normal;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); 
  }

  .text-box h1 span {
    font-weight: bold;
    color: #fff;
    display: block;
  }

  .text-box p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.95); 
    max-width: 520px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); 
    margin-left: auto; 
    margin-right: auto;
  }

  .text-box p strong {
    color: #fff;
    font-weight: 600;
  }

  .robot-container {
    position: relative;
    width: 100%;
    max-width: 450px; 
    margin-top: 20px; 
  }

  .circle-bg {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 300px; 
    height: 300px; 
    background-color: rgba(0, 116, 204, 0.4); 
    border-radius: 50%;
    z-index: 1;
  }

  .robot-img {
    position: relative;
    width: 100%; 
    max-width: 320px; 
    display: block;
    margin: 0 auto;
    z-index: 2;
    animation: floating 3s ease-in-out infinite; 
  }

  /* PANEL DERECHO */
  .right {
    flex: 1;
    background: url('img/login/background_blanco.webp') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative; 
    z-index: 1;
  }

  .form-box {
    width: 100%;
    max-width: 380px; 
    text-align: center;
  }

  .form-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
  }

  .logo-img {
    width: 50px; 
    height: auto;
  }

  .logo-text {
    text-align: left;
  }

  .logo-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2f79df; 
  }

  .logo-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5d85b3; 
    letter-spacing: 0.5px;
  }

  .input-group {
    position: relative;
    margin-bottom: 20px; 
  }

  .input-group input {
    width: 100%;
    padding: 14px 45px 14px 42px; 
    background-color: #f0f2f5; 
    border: 1px solid #f0f2f5; 
    border-radius: 25px; 
    font-size: 0.95rem; 
    color: #333;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  }

  .input-group input::placeholder {
    color: #888; 
  }

  .input-group input:focus {
    border-color: #0074cc; 
    background-color: #fff; 
    box-shadow: 0 0 0 3px rgba(0, 116, 204, 0.15);
  }

  .input-group .icon-left {
    position: absolute;
    top: 50%;
    left: 18px; 
    transform: translateY(-50%);
    color: #0074cc;
    font-size: 1.1rem; 
  }

  .input-group .icon-right { 
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #0074cc;
    font-size: 1.1rem;
    cursor: pointer;
  }

  .checkbox-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    font-size: 0.85rem; 
    margin-bottom: 25px;
    color: #555; 
  }

  .checkbox-container label {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  .checkbox-container a { 
    color: #0074cc;
    text-decoration: none;
    font-style: normal; 
    white-space: nowrap;
  }
   .checkbox-container a:hover {
    text-decoration: underline;
  }

  .checkbox-container input[type="checkbox"] {
    margin-right: 6px;
    accent-color: #0074cc; 
    border-radius: 3px;
    transform: scale(0.9); 
  }

  .form-box button,
  .btn-verificar-password-reset, 
  .btn-verificar-correo,
  .btn-confirm-new-password,
  #btn-reset-submit
   {
    width: 100%;
    padding: 14px; 
    background-color: #0074cc; 
    color: white;
    border: none;
    border-radius: 25px; 
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
  }

  .form-box button:hover,
  .btn-verificar-password-reset:hover,
  .btn-verificar-correo:hover,
  .btn-confirm-new-password:hover,
  #btn-reset-submit:hover {
    background-color: #005da3; 
    transform: translateY(-2px); 
  }
   .form-box button:active,
  .btn-verificar-password-reset:active,
  .btn-verificar-correo:active,
  .btn-confirm-new-password:active,
  #btn-reset-submit:active {
    transform: translateY(0px);
  }

  /* ----- INICIO DE LA MODIFICACIÓN ----- */
  /* Estilo general para enlaces de texto debajo de los formularios ("Regístrate", etc.) */
  .form-box form > a {
    display: block;
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555; /* Color de texto estándar */
    text-decoration: none;
    text-align: center;
  }
  
  /* El enlace "Regístrate" en la vista de login se muestra completamente en azul */
  .form-box form > a#btn-register {
    color: #0074cc;
    font-weight: 600;
  }

  /* Para el enlace "¿Tienes cuenta?...", la parte en 'strong' se pone en azul y negrita */
  .form-box form > a strong {
    font-weight: 600;
    color: #0074cc;
  }

  /* Al pasar el cursor, todo el enlace se subraya */
  .form-box form > a:hover,
  .form-box form > a:hover strong {
    text-decoration: underline;
  }
  /* ----- FIN DE LA MODIFICACIÓN ----- */


  /* Estilos específicos para botones de verificación y reenvío */
  .btn-verificar-password-reset {
    margin-bottom: 15px; 
  }
  .btn-verificar-correo {
      margin-bottom: 15px;
  }
  
  .btn-reenviar-password-reset,
  .btn-reenviar-registro {
    width: 100%;
    padding: 14px;
    border: none;
    background: #e9ecef; 
    color: #6c757d;
    font-weight: bold;
    border-radius: 25px; 
    cursor: default; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  }

  .btn-reenviar-password-reset:not(:disabled),
  .btn-reenviar-registro:not(:disabled) {
    background-color: #007bff; 
    color: white;
    cursor: pointer;
  }
  .btn-reenviar-password-reset:not(:disabled):hover,
  .btn-reenviar-registro:not(:disabled):hover {
     background-color: #0067b3; 
     transform: translateY(-2px);
  }


  /* RESPONSIVE */
  @media (max-width: 992px) { 
    .left {
      flex: 0.8; 
    }
    .right {
      flex: 1.2;
    }
    .text-box h1 {
      font-size: 2.8rem;
    }
    .robot-img {
      max-width: 280px;
    }
    .circle-bg {
      width: 250px;
      height: 250px;
    }
  }

  @media (max-width: 768px) {
    .left { display: none; } 
    .right { 
        flex: 1 1 100%; 
        padding: 20px; 
        background: url('img/login/background_blanco_mobile.webp') no-repeat center center;
        background-size: cover;
    }
    .form-box {
        padding: 20px; 
    }
    .input-group input {
        font-size: 1rem; 
    }
  }

  .fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out; 
  }

  .fade-in {
    opacity: 1;
    transition: opacity 0.4s ease-in; 
  }

  @keyframes floating {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-12px); } 
    100% { transform: translateY(0); }
  }

  .code-input-container { 
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; 
    margin-bottom: 25px; 
  }

  .code-input {
    width: 48px; 
    height: 48px; 
    font-size: 1.4rem; 
    text-align: center;
    border: 1px solid #ccc; 
    border-radius: 8px; 
    background-color: #f8f9fa;
    color: #333; 
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  }

  .code-input:focus {
    border-color: #0074cc;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 116, 204, 0.15);
  }

  .code-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #0074cc;
    font-size: 1.3rem;
  }

  .skeleton-loader {
    background-color: #e9ecef; 
    border-radius: 8px;
    overflow: hidden;
    position: relative;
  }
  .skeleton-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 80%);
    animation: shine 1.8s infinite linear; 
  }
  @keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }

    .spinner {
        display: inline-block;
        width: 0.9em; 
        height: 0.9em;
        border: 2px solid rgba(255, 255, 255, 0.6);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 0.7s linear infinite; 
        margin-left: 8px; 
        vertical-align: middle; 
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    .form-box .verification-footer {
        margin-top: 30px;
        padding-top: 15px; 
    }
    .form-box .verification-footer .form-header {
        margin-bottom: 15px; 
    }
    .form-box .verification-footer #btn-login-verify-pw,
    .form-box .verification-footer #btn-login-new-pw,
    .form-box .verification-footer #btn-login-verify-email {
        margin-top: 10px; 
        font-size: 0.85rem; 
    }
    .form-box .verification-footer #btn-login-verify-pw span strong,
    .form-box .verification-footer #btn-login-new-pw span strong,
    .form-box .verification-footer #btn-login-verify-email span strong {
        font-weight: 600; 
    }
    .form-box .verification-footer #btn-login-verify-pw i,
    .form-box .verification-footer #btn-login-new-pw i,
    .form-box .verification-footer #btn-login-verify-email i {
        font-size: 1.6rem; 
        margin-top: 5px;
    }

    .swal2-container {
        z-index: 99999 !important;
    }

