components/lamp-login.css (the edits)
/* components/lamp-login.css (your copy from the zip). Three edits: */
/* 1. Find "html:not(.fit) " and replace it with nothing.
It's on 7 lines inside the max-width: 760px block. */
/* 2. Change ":root{" to ":scope{" and "html,body{" to ":scope{". */
/* 3. Wrap the whole file in one @scope block: */
@scope (.qd-lamp) {
/* ...the file as shipped, with edits 1 and 2... */
}
/* @keyframes shake still works inside the block, but its name stays global.
If your app already has a "shake" animation, rename one of them. */
app/globals.css (the added rules)
/* Add below shadcn's theme and @layer base in app/globals.css */
/* Spotlight Lamp Login was built with Tailwind's preflight off. Inside .qd-lamp only,
roll the base styles (preflight and shadcn's base layer) back to browser
defaults. Unlayered and zero specificity, so the piece's own rules still win.
SVGs are left out: a revert would wipe their width, fill and stroke. */
:where(.qd-lamp, .qd-lamp :not(svg, svg *)) {
all: revert;
}
:where(.qd-lamp) {
line-height: normal;
}
:where(.qd-lamp svg) {
display: inline;
vertical-align: baseline;
}
app/sign-in/[[...sign-in]]/page.tsx (the wrapper)
// app/sign-in/[[...sign-in]]/page.tsx: put a qd-lamp div between your outer div and the card.
// Keep Tailwind classes off the qd-lamp div: the reset rules above would undo them.
<div className="h-dvh">
<div className="qd-lamp">
<SpotlightLampLogin /* the props from the snippet above */ />
</div>
</div>