main.wallets { .wallets__unlock { display: grid; gap: 1rem; place-content: center; width: min(100%, 28rem); min-height: calc(100dvh - 2 * var(--offset)); margin-inline: auto; text-align: center; > h1 { margin: 0; font-size: 3rem; font-weight: 400; line-height: 1; } > form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: end; @media (max-width: 34rem) { grid-template-columns: 1fr; } } > button { position: relative; isolation: isolate; justify-self: center; overflow: hidden; color: var(--gray); background: transparent; &::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in oklch, var(--red) 34%, transparent); transform: scaleX(0); transform-origin: left; } &.holding::before { transform: scaleX(1); transition: transform 2s linear; } } } }