Back to Login PagesLogin Page

Glassmorphism

A frosted-glass card floating over a vivid gradient backdrop.

About This Template

Uses backdrop-filter blur on a semi-transparent card over a purple-to-coral gradient, with soft floating blob shapes behind it. A modern, premium look suited to consumer apps and SaaS marketing sites.

Login PageCategory
HTML & CSSFormat
GlassGradientModern
Full Preview
Glassmorphism login page template preview
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Glassmorphism Login Page Template — Free HTML & CSS</title>
<meta name="description" content="Free glassmorphism login page template with a frosted-glass card, backdrop blur and a vivid gradient backdrop. Pure HTML & CSS, ready to copy for SaaS and consumer apps.">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://fatimahopefoundation.com/templates/login-pages/02-glassmorphism">

<meta property="og:type" content="website">
<meta property="og:title" content="Glassmorphism Login Page Template — Free HTML & CSS">
<meta property="og:description" content="Free glassmorphism login page template with a frosted-glass card, backdrop blur and a vivid gradient backdrop. Pure HTML & CSS, ready to copy for SaaS and consumer apps.">
<meta property="og:url" content="https://fatimahopefoundation.com/templates/login-pages/02-glassmorphism">
<meta property="og:image" content="https://fatimahopefoundation.com/images/login/02-glassmorphism.png">
<meta property="og:site_name" content="Fatima Hope Foundation">

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Glassmorphism Login Page Template — Free HTML & CSS">
<meta name="twitter:description" content="Free glassmorphism login page template with a frosted-glass card, backdrop blur and a vivid gradient backdrop. Pure HTML & CSS, ready to copy for SaaS and consumer apps.">
<meta name="twitter:image" content="https://fatimahopefoundation.com/images/login/02-glassmorphism.png">

<link rel="stylesheet" href="style.css">
</head>
<body>
  <div class="bg-shape shape-1"></div>
  <div class="bg-shape shape-2"></div>

  <main class="login-wrap">
    <section class="login-card">
      <div class="brand-mark">✦</div>
      <h1>Welcome back</h1>
      <p class="subtitle">Sign in to continue your journey</p>

      <form class="login-form">
        <label class="field">
          <span>Email</span>
          <input type="email" placeholder="you@example.com" required>
        </label>
        <label class="field">
          <span>Password</span>
          <input type="password" placeholder="••••••••" required>
        </label>

        <div class="row-between">
          <label class="checkbox">
            <input type="checkbox">
            <span>Remember me</span>
          </label>
          <a href="#" class="link">Forgot password?</a>
        </div>

        <button type="submit" class="btn-primary">Sign In</button>
      </form>

      <div class="divider"><span>or continue with</span></div>

      <div class="social-row">
        <button class="btn-social" type="button">Google</button>
        <button class="btn-social" type="button">Apple</button>
      </div>

      <p class="footer-text">New here? <a href="#">Create an account</a></p>
    </section>
  </main>
</body>
</html>
style.css
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  min-height: 100vh;
  color: #fff;
  background: linear-gradient(135deg, #6a5cff 0%, #b06ab3 45%, #ff8f8f 100%);
  overflow-x: hidden;
  position: relative;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .55;
  z-index: 0;
}
.shape-1 {
  width: 380px; height: 380px;
  top: -120px; left: -100px;
  background: radial-gradient(circle at 30% 30%, #ffd36e, transparent 70%);
}
.shape-2 {
  width: 420px; height: 420px;
  bottom: -140px; right: -120px;
  background: radial-gradient(circle at 60% 60%, #5ee7ff, transparent 70%);
}

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  padding: 40px 36px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 20px 50px rgba(31, 15, 60, 0.35);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }

.subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 28px;
}

.login-form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }

.field input {
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 400;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.field input::placeholder { color: rgba(255, 255, 255, 0.65); }
.field input:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.row-between { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }

.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input { accent-color: #fff; }

.link { color: #fff; font-weight: 600; text-decoration: none; opacity: .9; }
.link:hover { opacity: 1; text-decoration: underline; }

.btn-primary {
  margin-top: 4px;
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #6a4bd6;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s;
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(255, 255, 255, 0.35); }
.btn-primary:active { transform: scale(0.98); }

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  margin: 24px 0;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}
.divider span { padding: 0 12px; }

.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn-social {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-social:hover { background: rgba(255, 255, 255, 0.22); }

.footer-text { margin-top: 24px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.footer-text a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-text a:hover { text-decoration: underline; }