Skip to content

New Sign-In Security Alert Email

Email-safe security alert template for a new sign-in: device, browser, location, IP and time rows plus "This was me" and "Secure my account" buttons.

Also known as: security alert email, new login notification email, suspicious sign in email, account security email

New Sign-In Security Alert Email live demo

Open in new tab

Pure CSS code (HTML, CSS)

A transactional security alert email for a new sign-in, written as a real email-safe template: nested tables, inline styles, MSO conditional comments and padded-cell buttons, with no frameworks, web fonts, icon fonts or JavaScript. A white card with a red top border sits on a near-black background and lists the device, browser, approximate location, IP address and time of the sign-in, followed by two clear choices. The patterns target Outlook (Windows desktop), Gmail (web and apps) and Apple Mail.

How it works

A hidden preheader (.ssa-preheader) sets the inbox preview text. The full-width table.ssa-wrapper paints the dark background, and table.ssa-container is limited to 560px with max-width; an MSO ghost table gives Outlook the same fixed width. The brand row shows a letter-spaced wordmark and a "View in browser" link.

The card starts with a round alert badge drawn as a table cell with a pink background and a bold exclamation mark, so no image or icon font is needed. The sign-in details use a real data table, table.ssa-details, with a caption and th scope="row" headers; values are set in a monospace stack so IP addresses and times line up. "Today, 09:42 UTC" keeps the sample relative to the send.

The two buttons use the fluid hybrid technique: each sits in an inline-block div.ssa-col with a 244px max-width, so they appear side by side on desktop and stack on phones even in clients that ignore media queries, while Outlook reads them from a two-cell ghost table. Each button is a padded table cell (td.ssa-btn-ghost and td.ssa-btn-danger) wrapping a block link, which Outlook renders reliably. A yellow note explains what "Secure my account" does, and the footer carries the postal address, alert settings and an unsubscribe link.

Customization

  • Replace #d93025 (alert red) in the top border, badge, label and td.ssa-btn-danger to match your danger color.
  • Change #111418 on table.ssa-wrapper for a lighter background; adjust the footer link color #c9d1d9 so it stays readable.
  • Fill the rows of table.ssa-details from your sign-in event: device, browser, geo-IP city and time.
  • Point the two button links at signed, single-use URLs for confirming the sign-in and starting account recovery.
  • .ssa-px and .ssa-pxb in style.css reduce side padding below 600px, and .ssa-col lets the buttons fill the width.

Use cases

  • Web apps: warn users about a new sign-in with device, browser, location, IP and time rows
  • Fintech products: offer This was me and Secure my account buttons right in the email
  • Account security flows: a red-bordered card on a dark background draws attention to the alert
  • Transactional email: a framework-free template that renders in Outlook with padded-cell buttons

Accessibility

Layout tables use role="presentation", while the details table keeps its semantics so screen readers announce each label with its value. The heading is an h1, buttons have verbs as labels, and all text meets 4.5:1 contrast. The meaning never depends on color alone: the badge, label and heading all say it is a security alert. style.css adds focus-visible outlines where supported.

Usage notes

The template uses no images, so it renders fully even with images blocked. Keep alerts like this free of marketing content; many providers require security notices to stay purely transactional.

New Sign-In Security Alert Email at a glance

Framework
Pure CSS
Code
HTML, CSS
JavaScript
Not needed, CSS only
Dependencies
None
Layout
Responsive, works on mobile, dark design
Category
Email Templates
License
Free for personal and commercial use

Questions about this template

Can I use the New Sign-In Security Alert Email code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

There is nothing to install. Paste the HTML where the component should appear and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. It is built with HTML and CSS only, so there is no JavaScript to load.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

New Sign-In Security Alert Email – Pure CSS email templates component screenshot
New Sign-In Security Alert Email · Pure CSS Email Templates

More Email Templates

Feedback Survey Request Email – Pure CSS email templates preview

Feedback Survey Request Email

Email-safe feedback request with a one-tap 1 to 5 rating row of links, an open survey button, a thank-you discount note and a compliant footer.

Promotional Sale Email with Discount Code – Pure CSS email templates preview

Promotional Sale Email with Discount Code

Email-safe sale template with a big 40% off banner, dashed discount code box, four-product price grid, bulletproof shop button and terms line.

Subscription Renewal Reminder Email – Pure CSS email templates preview

Subscription Renewal Reminder Email

Email-safe renewal reminder with a photo header, plan summary and renewal amount, benefits list, bulletproof manage button and skip, pause and cancel links.

Event Invitation Email with RSVP – Pure CSS email templates preview

Event Invitation Email with RSVP

Dark email-safe event invitation with stage photo, date/time/location table, agenda highlights, Yes/No RSVP buttons and add-to-calendar links.

Payment Failed Email – Pure CSS email templates preview

Payment Failed Email

Email-safe card declined template with an alert banner, subscription and amount summary, decline reasons, update payment button and relative retry wording.

Re-engagement We Miss You Email – Pure CSS email templates preview

Re-engagement We Miss You Email

Email-safe win-back template with a friendly headline, what's new list with thumbnails, comeback offer card, return button and one-click unsubscribe.