* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #dbefff, #f5fbff);
}



.caja-inicioSesion {
    display: flex;
    width: 100%;
    background: linear-gradient(135deg, #a1e0ff, #62b5ff);
}

.formulario-login {
    width: 50%;
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, #ffffff, #e1f5ff);
    border-radius: 0 25px 25px 0;
    box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.05);
}

.formulario-login h2 {
    font-size: 2.2rem;
    margin-bottom: 1.8rem;
    color: #2c3e50;
    text-align: center;
}

.formulario-login input {
    width: 100%;
    padding: 0.9rem 1rem;
    margin-bottom: 1.2rem;
    border: 1.5px solid #cce7f5;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #f9fdff;
    transition: all 0.3s ease;
}

.formulario-login input:focus {
    border-color: #5ab4f3;
    outline: none;
    box-shadow: 0 0 8px rgba(90, 180, 243, 0.4);
}

.formulario-login button {
    width: 60%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #61dafb, #2980b9);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 1.5rem auto 0 auto;
}

.formulario-login button:hover {
    background: linear-gradient(135deg, #2980b9, #61dafb);
    transform: translateY(-2px);
}

.formulario-login p {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.95rem;
}

.formulario-login a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.formulario-login a:hover {
    text-decoration: underline;
}

.imagen {
    width: 50%;
    background: linear-gradient(to bottom right, #64c2ff, #4aa0dd);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.imagen a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 2rem;
}

.titulo-serviapp {
    font-size: 4rem;
    color: white;
    font-weight: bold;
}

.logo-opciones {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    animation: fadeIn 1s ease-in-out;
}

.logo-opciones a {
    display: inline-block;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-opciones a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-opciones img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    background-color: white;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries Responsive */
@media (max-width: 768px) {
    .contenedor {
        flex-direction: column;
        border-radius: 20px;
        padding-bottom: 20px;
    }

    .caja-inicioSesion {
        flex-direction: column-reverse;
    }

    .formulario-login, .imagen {
        width: 100%;
    }

    .formulario-login {
        border-radius: 25px 25px 0 0;
        padding: 2rem;
    }

    .imagen {
        border-radius: 0;
        font-size: 1.6rem;
        padding: 1.5rem;
    }

    .formulario-login button {
        width: 80%;
    }

    .logo-opciones {
        margin-top: 20px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .formulario-login h2 {
        font-size: 1.8rem;
    }

    .formulario-login input, 
    .formulario-login button {
        font-size: 1rem;
    }

    .imagen {
        font-size: 1.4rem;
    }

    .formulario-login button {
        width: 90%;
    }
}


.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .logo-opciones {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .logo-opciones a {
    display: inline-block;
    transition: transform 0.3s ease;
  }
  
  .logo-opciones a:hover {
    transform: scale(1.1);
  }
  
  .logo-opciones img {
    width: 30px; /* Más pequeño */
    height: 30px;
    object-fit: contain;
    background-color: transparent; /* Quitamos fondo blanco */
    padding: 0; /* Sin relleno extra */
    box-shadow: none; /* Sin sombra */
    border-radius: 0; /* No redondeado */
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .contenedor {
 
    overflow: hidden;
    border-radius: 30px; 
}

.texto-social {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}



/* Estilo mejorado del botón de Google con animaciones */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background-color: white;
    border-radius: 8px;
    color: #5F6368;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #DADCE0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #D2E3FC;
}

.google-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.1), transparent);
    transition: 0.5s;
}

.google-btn:hover::before {
    left: 100%;
}

.google-logo {
    width: 20px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.google-btn:hover .google-logo {
    transform: rotate(360deg);
}

.google-btn span {
    display: inline-block;
    padding-left: 8px;
    position: relative;
}

.google-btn span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #4285F4;
    transition: width 0.3s ease;
}

.google-btn:hover span::after {
    width: 100%;
}

.texto-social {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    color: #5F6368;
    position: relative;
}

.texto-social::before,
.texto-social::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #DADCE0;
    margin: auto;
    position: absolute;
    width: 30%;
    top: 50%;
}

.texto-social::before {
    right: 60%;
    margin-right: 15px;
}

.texto-social::after {
    left: 60%;
    margin-left: 15px;
}


/* Spinner moderno con efecto de profundidad y transición suave */
.spinner {
    border: 4px solid rgba(243, 243, 243, 0.8); /* Fondo con transparencia */
    border-top: 4px solid #3498db; /* Color principal */
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  /* Efecto de pulso para mayor dinamismo */
  .spinner::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: 50%;
    animation: pulse 1.5s ease-out infinite;
  }
  
  /* Animación principal mejorada */
  @keyframes spin {
    0% { 
      transform: rotate(0deg) scale(1);
      border-top-width: 4px;
    }
    50% {
      transform: rotate(180deg) scale(1.05);
      border-top-width: 6px;
    }
    100% { 
      transform: rotate(360deg) scale(1);
      border-top-width: 4px;
    }
  }
  
  /* Animación de pulso para el efecto secundario */
  @keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    70% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.1; }
  }
  
  /* Transición para mostrar/ocultar */
  .spinner.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
  }
  
  /* Versión alternativa para contextos oscuros */
  .spinner.dark-mode {
    border-color: rgba(30, 30, 30, 0.8);
    border-top-color: #5dade2;
  }
  
