JSFiddle - React, Tailwind, and code Playground

by HikariNoSekai

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <div class="login__container">
    <div class="login__header">
      <h2 class="login__heading">Login</h2>
    </div>
    <form class="login__form">
    
      <div class="login__group">
        <label class="login__phone-label">Phone</label>
        <input class="login__phone" type="text" required>   
      </div>
      <button type="submit" class="login__submit">
        Верификация
      </button>
      
    
  </form>
  </div>
</body>
</html>

CSS

*{
  box-sizing: border-box;
}

.login__container 		{ 
  font-family:'Roboto';
  background:#FFF;
  width: 600px;
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: .25rem;
}

.login__header{
  padding: .75rem 1.25rem;
  background-color: rgba(0,0,0,.03);
  border-bottom: 1px solid rgba(0,0,0,.125);
}

.login__form{
  padding: 1.25rem;
  display: flex;
  flex-flow: column nowrap;
}

/* form starting stylings ------------------------------- */
.login__group 			  { 
  position:relative;
  margin-bottom: 1rem;
  
}
.login__phone {
  font-size:18px;
  padding:10px 10px 10px 5px;
  border:none;
  width: 100%;
  border: 1px solid #ced4da;
}
.login__phone:focus{ outline:none; }

/* button */

.login__submit{
  padding: .25rem .5rem;
  font-size: .875rem;
  line-height: 1.5;
  border-radius: .2rem;
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
  cursor: pointer;
  align-self: flex-end;
}

/* ANIMATIONS ================ */
@-webkit-keyframes inputHighlighter {
	from { background:#5264AE; }
  to 	{ width:0; background:transparent; }
}
@-moz-keyframes inputHighlighter {
	from { background:#5264AE; }
  to 	{ width:0; background:transparent; }
}
@keyframes inputHighlighter {
	from { background:#5264AE; }
  to 	{ width:0; background:transparent; }
}