NEOMORPHISM LOGIN FORM

NEOMORPHISM LOGIN FORM:

DESIGN:

SOURCE-CODE:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Neumorphism Login Form</title>
    <style>
      body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #ecf0f3;
    font-family: Arial, sans-serif;
}

.login-container {
    background-color: #ecf0f3;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 9px 9px 16px #d1d9e6, -9px -9px 16px white;
    text-align: center;
}

h2 {
    margin-bottom: 20px;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input {
    padding: 15px;
    border: none;
    border-radius: 10px;
    box-shadow: inset 5px 5px 10px #d1d9e6, inset -5px -5px 10px white;
    background-color: #ecf0f3;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: box-shadow 0.3s ease;
}

input:focus {
    box-shadow: inset 8px 8px 16px #d1d9e6, inset -8px -8px 16px white;
}

button {
    padding: 15px;
    border: none;
    border-radius: 10px;
    box-shadow: 5px 5px 10px #d1d9e6, -5px -5px 10px white;
    background-color: #ecf0f3;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-container:hover {
  border: 0.5px solid rgb(134, 209, 255);
}
button:hover {
    box-shadow: 9px 9px 16px #d1d9e6, -9px -9px 16px white;
}
    </style>
</head>
<body>
    <div class="login-container">
        <h2>Login</h2>
        <form>
            <input type="text" placeholder="Username">
            <input type="password" placeholder="Password">
            <button type="submit">Login</button>
        </form>
    </div>
</body>
</html>

Comments

Popular posts from this blog

SIGMA WEB DEV JAVASCRIPT CLASS NOTES:

WEB DEV CODE NOTES :