Tailwind CSS Authentication Page with Login Form - Simple Login Page
A responsive login page built with Tailwind CSS, suitable for developers needing a quick auth template.
By MiladJoodi miladjoodi/login_screen_tailwind 21 stars
Introduction
Simple Login Page is a minimal, fully responsive login screen built with Tailwind CSS and plain HTML. The page includes a standard login form, a Google login button, links for password recovery and registration, and a side illustration. It is intended for developers or designers who need a quick, ready‑to‑use authentication UI that works in any modern web browser.
What this project offers
- A single HTML file (
index.html) that contains the complete login page. - All styling is applied through the Tailwind CDN, so no local CSS files are required.
- Two image assets:
favicon.pngandlogin.jpg, used for the page icon and the side illustration. - A clean, responsive layout that adapts to desktop and mobile screens.
Main features
- Login form with fields for email and password.
- Google login button styled to match the rest of the page.
- Forgot password link.
- Register button for users without an account.
- Responsive design that rearranges the form and image on smaller screens.
- Side image displayed on larger screens for visual appeal.
Technology stack
- HTML5 – the markup language of the page.
- Tailwind CSS – loaded from the official CDN (
https://cdn.tailwindcss.com). - Images –
favicon.png(page icon) andlogin.jpg(illustration).
Requirements
- A modern web browser (Chrome, Firefox, Edge, Safari, etc.).
- No server‑side runtime or build tools are required.
Installation
- Download the project
# The ZIP file is provided at the following path
# /download/simple-login-tailwind.zip
# Save it to a convenient location and unzip it.
unzip simple-login-tailwind.zip -d simple-login-tailwind
- Open the page locally
# Change to the project folder
cd simple-login-tailwind
# Open the HTML file in the default browser (macOS example)
open index.html
On Windows you can double‑click index.html in File Explorer; on Linux use xdg-open index.html.
- Deploy to a web host (optional)
- Upload the three files (
index.html,favicon.png,login.jpg) to the root of your static‑site host (GitHub Pages, Netlify, Vercel, shared hosting, etc.). - Ensure the files keep the same names, because the HTML references them directly.
- After uploading, navigate to the URL provided by your host to view the login page online.
- Upload the three files (
Configuration
The page does not require any configuration files. All visual aspects are controlled directly in the HTML via Tailwind utility classes. If you need to change the text, images, or colors, edit index.html with any text editor.
Customizing the project
- Colors – Tailwind classes such as
bg-[#002074]define the primary color. Replace the hex value with your own color code. - Images – Replace
login.jpgwith another image of the same dimensions, and update thesrcattribute if you rename the file. - Text – Modify headings, placeholder text, and button labels directly in the HTML.
- Tailwind version – The page loads Tailwind from the CDN, so you can change the script URL to a specific version if desired (e.g.,
https://cdn.tailwindcss.com?plugins=...).
Project structure
LICENSE
README.md
favicon.png
index.html
login.jpg
Tips
- Because Tailwind is loaded from the CDN, the page works without any local build step, but an internet connection is required to fetch the stylesheet.
- For offline use, you can download the Tailwind CDN script and reference it locally, then update the
<script src="...">tag accordingly. - Test the page on both mobile and desktop browsers to verify the responsive layout behaves as expected.
- If you plan to integrate this login form with a backend, replace the empty
action=""attribute on the<form>element with the URL of your authentication endpoint.
License and attribution
This project is licensed under the MIT License. See the full license text in the LICENSE file.
Original repository: https://github.com/miladjoodi/login_screen_tailwind
When redistributing or using the code, keep the LICENSE file intact and credit the author, Milad Joodi.
Use this prompt with an AI coding assistant (Claude Code, Cursor, Copilot, ChatGPT and similar).
- Download the ZIP and extract it where your new project will live.
- Download the ZIP and extract it next to your project, so the assistant can read both.
- Fill in the bracketed parts under “About my project”.
- Paste the prompt into your assistant and review each change it proposes.
# Start a new project with Simple Login Page ## Your task You are a senior frontend engineer. We are building a new project using Simple Login Page, a web application built with Tailwind CSS, as the starting point. Keep its design and turn the demo into a clean, real codebase that I can maintain. ## About my project - What I'm building and for whom: [describe it] - Pages I need: [list them] - Stack: [keep it as plain static files, or name one: Vite / Laravel / Next.js / Astro] - Brand: [name, colours, fonts, logo] # Simple Login Page — project brief ## Source project Simple Login Page is a single‑page responsive authentication screen built with Tailwind CSS (loaded from the CDN). It is a static HTML application. Repository: https://github.com/miladjoodi/login_screen_tailwind, license MIT (see LICENSE, author Milad Joodi). ## Files that matter - **Entry page**: `index.html` – the only HTML file and the demo entry point. - **Images**: `favicon.png` (site icon), `login.jpg` (illustration shown on the right side of the form). - **Other files**: `README.md` (project description), `LICENSE` (MIT license). There are no separate stylesheet, script, or component files; all Tailwind classes are applied inline in `index.html`. ## Setup and build The project consists of plain static files; no build step or npm scripts are required. To view it locally you can simply open `index.html` in a browser or serve the folder with any static file server, e.g.: ```bash # Using Python 3 python -m http.server 8000 # Then open http://localhost:8000 in a browser ``` If you prefer a Node‑based static server: ```bash npx serve . ``` ## How it is put together `index.html` contains a full HTML document that loads Tailwind CSS via the CDN script tag: ```html <script src="https://cdn.tailwindcss.com"></script> ``` The layout is a centered container (`section.bg-gray-50`) that holds a flex box with two halves: 1. **Left half** (`md:w-1/2`) – the login form, Google login button, “Forgot password” link, and a register prompt. All UI elements use Tailwind utility classes for spacing, colors, borders, and hover effects. 2. **Right half** (`md:block hidden w-1/2`) – an image (`login.jpg`) displayed only on medium screens and larger. The page relies solely on Tailwind’s utility classes; there is no custom JavaScript, no component libraries, and no theme toggles. Colors and fonts are defined directly in the class attributes (e.g., `text-[#002074]`, `bg-[#002074]`). The design is responsive via Tailwind’s responsive prefixes (`md:`). Dark mode and RTL are not supported. ## Watch out for 1. **Tailwind version** – the page loads Tailwind from the CDN without specifying a version, so the latest version will be used. Upgrading to a future major version could change class behavior. 2. **Global Tailwind reset** – Tailwind’s preflight resets default browser styles, which may affect other pages if the file is integrated into a larger site. 3. **No local CSS/JS** – all styling is inline; adding custom styles requires editing the HTML or adding a separate stylesheet. 4. **Image paths** – the right‑hand image expects `login.jpg` in the same directory as `index.html`. Moving files without updating the `src` attribute will break the layout. 5. **No form handling** – the `<form>` element has an empty `action` attribute; submitting will reload the page. You will need to add your own backend endpoint or JavaScript handling. 6. **Tailwind CDN script** – the script must be loaded before any Tailwind classes are used; removing or delaying it will cause the page to appear unstyled. ## Verify - [ ] `index.html` loads without console errors and displays the login form. - [ ] Tailwind CSS is applied (styles such as `bg-gray-50`, `rounded-xl`, and custom colors appear). - [ ] The right‑hand image (`login.jpg`) is visible on screens `md` and larger. - [ ] Responsive behavior works: on small screens the image column hides and the form expands to full width. - [ ] Links and buttons (Login, Google login, Forgot password, Register) are present and clickable. - [ ] No duplicate Tailwind script tags are present in the HTML. - [ ] The MIT license file is included unchanged. - [ ] Opening the file directly (file://) or via a static server shows the same layout. # How to work ## Step 1 — Get it running as it is Start from the downloaded ZIP or a clone of the repository. Serve the files locally as described in "Setup and build" above and open the entry page. Confirm it runs without console errors before changing anything. ## Step 2 — Plan the project with me List the pages and sections of Simple Login Page to keep, rename or remove for my project, the folder structure you propose for my stack, and where the repeated parts will live. Wait for my OK. ## Step 3 — Build it - Keep the pages I need, remove the rest, and replace the sample content with real content. - Extract repeated parts (header, navigation, footer) into shared partials or components. - Put my brand name, colours and fonts where Simple Login Page defines its theme (see "How it is put together" above), not as one-off overrides. - Keep Tailwind CSS's markup patterns and class conventions so the design stays consistent, and don't change its major version unless I ask. ## Step 4 — Polish and launch - Remove demo content and every CSS/JS file nothing uses any more; optimise images. - Check phone, tablet and desktop widths, labels, alt text, keyboard focus and colour contrast. - Tell me which files to upload to the host. - Keep the license file and credit the author of Simple Login Page. ## Ground rules Work in small steps and show me each change. Use only the libraries already in the project unless I agree to add one.




