    input[type="text"] {
        width: 70%;
        padding: 12px 20px;
        border-radius: 25px 0 0 25px;
        border: none;
        outline: none;
        font-size: 1em;
        background: #222;
        color: #fff;
        transition: 0.1s all;
    }

   input[type="text"]:focus {
        /*box-shadow: 0 0 20px #ff0000 inset;*/
    }
/* Ensure button shares the input wrapper gradient */
.input-wrapper button {
    position: relative;
    z-index: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 0 25px 25px 0;
    font-weight: bold;
    color: white;
    cursor: pointer;
    background: #222; /* default background */
    overflow: hidden;
}

/* Pseudo-element for button glow (shared gradient edge) */
.input-wrapper .glowbutton::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: conic-gradient(
        #ff8800, 
        #ff0088, 
        #8800ff, 
        #0088ff, 
        #00ff88, 
        #ff8800
    );
    filter: blur(10px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.1s;
}

/* Only show when input is focused */
.input-wrapper input:focus + button::before,
.input-wrapper:focus-within button::before {
    opacity: 1;
    animation: shift2 2s linear infinite;
}

.input-wrapper{
    border: 10px;
    background-color: #222;
}

@keyframes shift2 {
    0% { filter: blur(10px) hue-rotate(0deg); }
    100% { filter: blur(10px) hue-rotate(360deg); }
}


        @keyframes shift {
        0% { filter: blur(15px) hue-rotate(0deg); }
        100% { filter: blur(15px) hue-rotate(360deg); }
    }

    .input-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 25px;
}

.input-wrapper input {
    width: 25vw;
    padding: 12px 20px;
    border: none;
    outline: none;
    background: #222;
    color: #fff;
    position: relative;
    z-index: 1;
    transition: 0.1s all;
}

/* Pseudo-element for gradient glow */
.input-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 3px; /* thickness of the glow */
    background: conic-gradient(
        #ff8800,
        #ff0088,
        #8800ff,
        #0088ff,
        #00ff88,
        #ff8800
    );
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.1s;
    z-index: 5;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Only show & animate when input is focused */
.input-wrapper .glowbutton:focus + ::before,
.input-wrapper:focus-within::before {
    opacity: 1;
    animation: shift2 2s linear infinite;
}
/*

.image-button {
  height: 100%;
  position: relative;
  display: inline-block;
}

.image-button::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background-image: url('image-search.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

*/