# Marketing Hero Form: Floating Card With Gradient

A hero with a floating form card resting over a soft gradient backdrop. Highlights a signup field and pulls the eye to one clear action.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/floating-card-with-gradient
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing), Free tier
- Group: [Hero Forms](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/floating-card-with-gradient.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-hero-forms-floating-card-with-gradient
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/marketing-hero-forms-floating-card-with-gradient.json"`.

## Depends on

- npm packages: @icons-pack/react-simple-icons, class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: brand-icons, button, input, label, tabs
- Installs to: `@/components/blocks/marketing/hero-forms/floating-card-with-gradient`

## About this block

Floating Card With Gradient fills the full viewport with a soft color wash
that blends indigo, purple, and pink tones, with two blurred circular shapes
anchored in opposite corners to add depth. Centered on that backdrop sits a
single frosted card. Inside the card, a "Welcome Back" heading and a short
line of subtext sit above a two-tab switcher. The Email tab shows an email
field, a password field with a "Forgot password?" link, and a full-width
sign-in button. The Phone tab replaces those with a phone number field and a
button that sends a verification code. Below the tabs a divider labeled "Or
continue with" leads to a row of three outline icon buttons for email,
Twitter, and GitHub. A short "Don't have an account? Sign up" line closes
the card.

The heading copy, subtext, field labels, placeholder text, and the social
login row are all straightforward to swap or trim. If your product uses only
one sign-in method, remove the tab switcher and keep whichever tab content
fits. The social buttons can be reduced to one or two without changing the
card's proportions.

## When to use

Reach for this block at the very top of a sign-in or account access page
where you want the authentication form to be the undeniable focal point.
For a healthcare scheduling product it works especially well on a patient
portal login, where a calm, full-screen presentation signals trust before
the visitor types a single character. It is a stronger choice than a plain
split-screen layout when there is no compelling product image to show
alongside the form, and a stronger choice than a minimal inline form when
the page exists solely for authentication rather than as a secondary panel
on a marketing page.

A natural flow around it on a Marketing (Legacy) page:

**Before**

- An [Announcement Banner](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners) to
  surface a brief status notice or scheduled maintenance alert above the
  sign-in view
- A short hero from [Hero Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections) on a
  separate landing page that links visitors to this sign-in page

**After**

- A [CTA Section](https://www.shadcn-ui-blocks.com/blocks/marketing/cta-sections) lower on the page to
  invite visitors who do not yet have an account to create one
- A [Newsletter Subscription](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/newsletter-subscription)
  block if you want a lightweight opt-in option for visitors who are not
  ready to sign up

## What you can customize

The card is self-contained, so most changes are confined to the fields and
labels inside it. A few common directions:

- **Sign-in methods.** Add or remove tabs to match your supported auth
  flows, whether that is magic link, passkey, or SSO, by editing the tab
  labels and their content panels.
- **Social provider row.** Swap in the icon buttons for whichever OAuth
  providers you support, or remove the divider and the row entirely if you
  rely solely on credentials.
- **Background mood.** The gradient and blurred circles are all in the
  outermost wrapper, separate from the card, so you can shift the color
  stops or remove the shapes without touching the form logic.

> Tip: keep the card to its current single-column width on mobile so the
> frosted glass effect reads clearly against the gradient at every screen
> size.

## More in Marketing Hero Forms

- [Booking Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/booking-form)
- [Center Aligned Search With Tags](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/center-aligned-search-with-tags)
- [Center Aligned With A Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/center-aligned-with-a-form)
- [Contact Form With Background](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/contact-form-with-background)
- [Contest Entry Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/contest-entry-form)
- [Early Access Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/early-access-form)
- [Event Registration Countdown](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/event-registration-countdown)
- [Feedback Survey Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/feedback-survey-form)
- [Free Ebook Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/free-ebook-form)
- [Free Trial Signup Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/free-trial-signup-form)
- [Image And Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/image-and-form)
- [Job Application Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/job-application-form)
- [Newsletter Subscription](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/newsletter-subscription)
- [Newsletter With Social Proof](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/newsletter-with-social-proof)
- [Product Customizer Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/product-customizer-form)
- [Quiz Assessment Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/quiz-assessment-form)
- [Schedule Demo Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/schedule-demo-form)
- [Sign Up Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/sign-up-form)
- [Split Screen Multi Step](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/split-screen-multi-step)
- [Subscription Form With Toggle](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/subscription-form-with-toggle)
- [Two Factor Verification](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/two-factor-verification)
- [User Feedback Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/user-feedback-form)
- [Webinar Registration Form](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-forms/webinar-registration-form)
