JSFiddle - React, Tailwind, and code Playground

by Harsh Kansagara

HTML

<div class="login">

  <div class="logo">
    <img src="https://app-whatshash-com.s3.ap-south-1.amazonaws.com/public/vepaar-logo-dark.png">
  </div>
  <ul class="fields">
    <li>
      <p class="error">
        Email / Password is invalid.
      </p>
    </li>
    <li>
      <label>Email</label>
      <input type="email" />
    </li>
    <li>
      <label>Password</label>
      <input type="password" />
    </li>
    <li>
      <button type="submit">Login</button>
    </li>
  </ul>
</div>

CSS

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}


.login {
  width: 300px;
}

.logo {
  margin-bottom: 14px;
}

.logo img {
  height: 40px
}

.fields {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fields>li+li {
  margin-top: 14px;
}

.fields label {
  display: block;
  color: #777;
  font-size: 14px;
  margin-bottom: 2px;
}

.fields input {
  width: 100%;
  border: 1px solid #dadada;
  height: 40px;
  line-height: 40px;
  padding: 0px 20px;
  border-radius: 4px;
}

button {
  height: 40px;
  line-height: 40px;
  border: none;
  padding: 0;
  width: 100%;
  border-radius: 4px;
  background: #304ffe;
  color: #fff;
  font-weight: bold;
  cursor:pointer;
}

button:hover {
  background: #182bb6;
}

.error{
  padding:14px;
  background:#ffebee;
  border-radius:4px;
  font-size:14px;
  color:#c62828;
}