* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #cfd1e1;
    overflow: hidden;
}

label {
    position: relative;
    width: 120px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

label::before {
    content: "";
    position: absolute;
    width: 60%;
    height: 4px;
    background: #444;
    border-radius: 4px;
}

label input {
    position: absolute;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.icon {
    position: absolute;
    left: 0;
    width: 60px;
    height: 100%;
    transition: 0.5s;
}

label input:checked ~ .icon {
    left: 60px;
}

.icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(#fff, #fff, #e3e3e3);
    filter: blur(1px);
}

.icon::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    width: 10px;
    height: 100%;
    background: #9d9d9d;
    filter: blur(1px);
}

.shadow {
    position: absolute;
    top: 30px;
    left: -12px;
    width: 84.85px;
    height: 300px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent, transparent);
    transform-origin: top;
    transform: rotate(315deg);
    pointer-events: none;
}

.iconBox {
    display: flex;
    justify-content: center;
    position: relative;
    align-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(#dbdae1,#a3aaba);
    box-shadow: 5px 5px 5px rgb(0, 0, 0,0.1),
    15px 15px 15px rgb(0, 0, 0,0.1),
    20px 20px 20px rgb(0, 0, 0,0.1),
    30px 30px 30px rgb(0, 0, 0,0.1),
    inset 1px 1px 2px #fff}


    

.iconBox i {
    color: #555;
    font-size: 1.5em;
    transition: 0.5s;
}
label input:checked ~ .icon .iconBox i {
    color: cyan;
    filter: drop-shadow(0 0 5px #00ffe2) drop-shadow(0 0 15px #00ffe2);
}
