/* Reset de estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
}

/* Formulario de registro y de login comparten estilos */
.form {
    display: none; /* Ocultar inicialmente */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.form.active {
    display: flex; /* Mostrar solo cuando tenga la clase "active" */
}

/* Ajustar los textos del enlace */
a {
    cursor: pointer;
    color: #6a11cb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #2575fc;
    text-decoration: underline;
}

/* Contenedor principal */
#container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Sección de la imagen */
  #image-section {
      flex: 1;
      background-image: url('img/highway-7213206_1280.webp');
      background-size: cover;
      background-position: center;
  }

/* Contenedor de formularios */
#form-container {
    flex: 0.4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 0 12px 12px 0;
}

/* Estilos para los encabezados */
h2 {
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 600;
    color: #2d3436;
}

/* Campos de entrada */
input {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #6a11cb;
    box-shadow: 0 0 6px rgba(106, 17, 203, 0.5);
}

/* Botones */
button {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s ease;
}

button:hover {
    background: linear-gradient(to right, #5a0bb5, #1f65d1);
    transform: translateY(-2px);
}

/* Texto pequeño debajo de formularios */
p {
    font-size: 14px;
    margin-top: 12px;
    color: #636e72;
}

/* Botón Google (opcional) */
.google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: #ffffff;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-login:hover {
    background-color: #f4f4f4;
}

/* Icono en el botón de Google */
.google-login svg {
    margin-left: 10px;
    width: 20px;
    height: 20px;
}

/* Ajuste para formularios individuales */
#login-form, #signup-form {
    width: 100%;
    max-width: 360px;
}

/* Ocultar enlaces del formulario no activo */
#signup-form p a, #login-form p a {
    display: inline-block;
    margin-top: 10px;
}
#waiting-screen {
    display: none;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    text-align: center;
    padding: 20px;
  }
  
  #waiting-container {
    background-color: #333;
    border-radius: 10px;
    padding: 30px;
    display: inline-block;
    margin-top: 20%;
  }
  
  #resend-verification-btn {
    margin-top: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
  }
  
  #resend-verification-btn:hover {
    background-color: #45a049;
  }
  /* Estilos para el contenedor de notificaciones */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  /* Estilos generales para una notificación */
  .notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
    color: #212529;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    min-width: 300px;
    border-left: 5px solid #0d6efd;
    animation:  opacity 0.3s ease, transform 0.3s ease; /* Transición suave */
    opacity: 0;
  }
  
  /* Icono de cierre */
  .notification .close-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #6c757d;
  }
  
  /* Tipos de notificaciones */
  .notification.success {
    border-left-color: #198754;
  }
  .notification.error {
    border-left-color: #dc3545;
  }
  #loadHeavyModule {
    display: none;
  }
  
  /* Animaciones */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeOut {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(-10px);
    }
  }
  #company-logo {
    display: block;        /* para que ocupe su propia línea */
    margin: 0 auto 20px;   /* centrar horizontal (auto) y dar espacio abajo */
    max-width: 180px;      /* un ancho máximo para que no sea enorme */
    height: auto;          /* que se ajuste la altura automáticamente */
  }
  