Back to Login PagesLogin Page

Dark Neon

A dark glass card with violet-to-cyan neon glow accents.

About This Template

Deep near-black background with blurred violet and cyan glow blobs, a frosted dark card, and a neon gradient button. Suited to developer tools, gaming, and tech-forward products.

Login PageCategory
HTML & CSSFormat
Dark ModeNeonGradient
Full Preview
Dark Neon 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>Dark Neon Login Page Template — Free HTML & CSS</title>
<meta name="description" content="Free dark-mode neon login page template with violet-to-cyan glow accents and a frosted dark card. Free HTML & CSS code for developer tools and gaming sites.">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://fatimahopefoundation.com/templates/login-pages/04-dark-neon">

<meta property="og:type" content="website">
<meta property="og:title" content="Dark Neon Login Page Template — Free HTML & CSS">
<meta property="og:description" content="Free dark-mode neon login page template with violet-to-cyan glow accents and a frosted dark card. Free HTML & CSS code for developer tools and gaming sites.">
<meta property="og:url" content="https://fatimahopefoundation.com/templates/login-pages/04-dark-neon">
<meta property="og:image" content="https://fatimahopefoundation.com/images/login/04-dark-neon.png">
<meta property="og:site_name" content="Fatima Hope Foundation">

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Dark Neon Login Page Template — Free HTML & CSS">
<meta name="twitter:description" content="Free dark-mode neon login page template with violet-to-cyan glow accents and a frosted dark card. Free HTML & CSS code for developer tools and gaming sites.">
<meta name="twitter:image" content="https://fatimahopefoundation.com/images/login/04-dark-neon.png">

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

  <main class="login-wrap">
    <section class="login-card">
      <div class="brand-mark">⚡</div>
      <h1>Access your account</h1>
      <p class="subtitle">Enter your credentials to continue</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">GitHub</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;
  background: #05060a;
  color: #f1f5f9;
  position: relative;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
  z-index: 0;
}
.glow-1 { width: 420px; height: 420px; top: -100px; left: -80px; background: #8b5cf6; }
.glow-2 { width: 420px; height: 420px; bottom: -120px; right: -80px; background: #22d3ee; }

.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(17, 24, 39, 0.65);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px;
  padding: 40px 36px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(139,92,246,.08), 0 20px 60px rgba(0,0,0,.6);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.6);
}

h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.subtitle { color: #94a3b8; 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; color: #cbd5e1; }

.field input {
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  font-weight: 400;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #64748b; }
.field input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

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

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

.link { color: #22d3ee; font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

.btn-primary {
  margin-top: 4px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  color: #05060a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .15s, transform .1s;
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(139, 92, 246, 0.55); }
.btn-primary:active { transform: scale(0.98); }

.divider { display: flex; align-items: center; text-align: center; color: #64748b; font-size: 12px; margin: 24px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(148, 163, 184, 0.2); }
.divider span { padding: 0 12px; }

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

.btn-social {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn-social:hover { border-color: #8b5cf6; background: rgba(139, 92, 246, 0.08); }

.footer-text { margin-top: 24px; text-align: center; font-size: 13px; color: #94a3b8; }
.footer-text a { color: #22d3ee; font-weight: 700; text-decoration: none; }
.footer-text a:hover { text-decoration: underline; }