Back to Login PagesLogin Page
Material Design
Google Material-inspired elevation, filled inputs and floating labels.
About This Template
Follows Material Design conventions: elevated white card, filled inputs with animated floating labels, an uppercase filled button, and Roboto-style type. Familiar to Android and Google-ecosystem users.
Login PageCategory
HTML & CSSFormat

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Material Design Login Page Template — Free HTML & CSS</title>
<meta name="description" content="Free Material Design login page template with elevated card, filled inputs and floating labels. Free HTML & CSS code following Google Material conventions.">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://fatimahopefoundation.com/templates/login-pages/06-material">
<meta property="og:type" content="website">
<meta property="og:title" content="Material Design Login Page Template — Free HTML & CSS">
<meta property="og:description" content="Free Material Design login page template with elevated card, filled inputs and floating labels. Free HTML & CSS code following Google Material conventions.">
<meta property="og:url" content="https://fatimahopefoundation.com/templates/login-pages/06-material">
<meta property="og:image" content="https://fatimahopefoundation.com/images/login/06-material.png">
<meta property="og:site_name" content="Fatima Hope Foundation">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Material Design Login Page Template — Free HTML & CSS">
<meta name="twitter:description" content="Free Material Design login page template with elevated card, filled inputs and floating labels. Free HTML & CSS code following Google Material conventions.">
<meta name="twitter:image" content="https://fatimahopefoundation.com/images/login/06-material.png">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="login-wrap">
<section class="login-card">
<div class="brand-mark">M</div>
<h1>Sign in</h1>
<p class="subtitle">Use your account to continue</p>
<form class="login-form">
<div class="field">
<input type="email" id="email" placeholder=" " required>
<label for="email">Email address</label>
</div>
<div class="field">
<input type="password" id="password" placeholder=" " required>
<label for="password">Password</label>
</div>
<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</span></div>
<div class="social-row">
<button class="btn-social" type="button">Continue with Google</button>
</div>
<p class="footer-text">Don't have an account? <a href="#">Register now</a></p>
</section>
</main>
</body>
</html>* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
min-height: 100vh;
background: #fafafa;
color: #202124;
}
.login-wrap {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
}
.login-card {
width: 100%;
max-width: 400px;
background: #fff;
border-radius: 8px;
padding: 44px 40px;
box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
}
.brand-mark {
width: 44px; height: 44px;
border-radius: 50%;
background: #1a73e8;
color: #fff;
display: flex; align-items: center; justify-content: center;
font-weight: 700;
margin-bottom: 20px;
}
h1 { font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.subtitle { color: #5f6368; font-size: 14px; margin-bottom: 32px; }
.login-form { display: flex; flex-direction: column; gap: 24px; }
.field { position: relative; }
.field input {
width: 100%;
font: inherit;
padding: 14px 12px 6px;
border: none;
border-bottom: 2px solid #dadce0;
background: #f4f4f5;
border-radius: 4px 4px 0 0;
font-size: 15px;
outline: none;
transition: border-color .15s, background .15s;
}
.field input:focus { border-color: #1a73e8; background: #eef4fd; }
.field label {
position: absolute;
left: 12px;
top: 14px;
font-size: 15px;
color: #5f6368;
pointer-events: none;
transition: all .15s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
top: 4px;
font-size: 11px;
color: #1a73e8;
}
.row-between { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-top: -6px; }
.checkbox { display: flex; align-items: center; gap: 8px; color: #3c4043; cursor: pointer; }
.checkbox input { accent-color: #1a73e8; }
.link { color: #1a73e8; text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }
.btn-primary {
margin-top: 8px;
padding: 12px;
border: none;
border-radius: 6px;
background: #1a73e8;
color: #fff;
font-size: 13.5px;
font-weight: 600;
letter-spacing: .4px;
cursor: pointer;
transition: background .15s, box-shadow .15s;
}
.btn-primary:hover { background: #1765cc; box-shadow: 0 1px 3px rgba(60,64,67,.4); }
.btn-primary:active { background: #185abc; }
.divider { display: flex; align-items: center; text-align: center; color: #80868b; font-size: 11px; letter-spacing: .5px; margin: 26px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #dadce0; }
.divider span { padding: 0 12px; }
.btn-social {
width: 100%;
padding: 11px;
border-radius: 6px;
border: 1px solid #dadce0;
background: #fff;
font-size: 13.5px;
font-weight: 600;
color: #3c4043;
cursor: pointer;
transition: background .15s, box-shadow .15s;
}
.btn-social:hover { background: #f7f8f8; box-shadow: 0 1px 2px rgba(60,64,67,.2); }
.footer-text { margin-top: 26px; text-align: center; font-size: 13.5px; color: #5f6368; }
.footer-text a { color: #1a73e8; font-weight: 600; text-decoration: none; }
.footer-text a:hover { text-decoration: underline; }