Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- body{
- margin: 0;
- padding: 0;
- font-family: sans-serif;
- background:#130f40;
- }
- .box{
- width: 300px;
- padding: 40px;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- background: #2c3e50;
- border: 0;
- border-radius: 10px;
- text-align: center;
- }
- .box a{
- color: white;
- text-transform: uppercase;
- font-weight: 500;
- }
- .box input[type = "text"], .box input[type = "password"]{
- color: black;
- display: block;
- margin: 20px auto;
- background: none;
- border: 2px solid #00b894;
- text-align: center;
- padding: 14px 10px;
- width: 200px;
- outline: none;
- border-radius: 24px;
- transition: 0.25s;
- }
- .box input[type = "text"]:focus, .box input[type = "password"]:focus{
- border-color: #74b9ff;
- width: 280px;
- }
- .box input[type = "submit"]{
- display: block;
- margin: 20px auto;
- background: none;
- border: 2px solid #74b9ff;
- text-align: center;
- padding: 14px 40px;
- outline: none;
- color: white;
- border-radius: 24px;
- transition: 0.25s;
- cursor: pointer;
- }
- .box input[type = "submit"]:hover{
- background:#74b9ff;
- box-shadow: 0 0 10px #74b9ff, 0 0 40px #74b9ff, 0 0 80px #74b9ff;
- transition-delay: 0.1s;
- }
- .box span{
- position: absolute;
- display: block;
- }
- form span:nth-child(1){
- top: 0;
- left: -100%;
- width: 100%;
- height: 5px;
- background: linear-gradient(90deg,transparent,#3498db);
- }
- form:hover span:nth-child(1){
- left: 100%;
- transition: 1s;
- }
- form span:nth-child(3){
- bottom: 0;
- right: -100%;
- width: 100%;
- height: 5px;
- background: linear-gradient(270deg,transparent,#3498db);
- }
- form:hover span:nth-child(3){
- right: 100%;
- transition: 1s;
- transition-delay: 0.5s;
- }
- form span:nth-child(2){
- top: -100%;
- right: 0;
- width: 5px;
- height: 100%;
- background: linear-gradient(180deg,transparent,#3498db);
- }
- form:hover span:nth-child(2){
- top: 100%;
- transition: 1s;
- transition-delay: 0.25s;
- }
- form span:nth-child(4){
- bottom: -100%;
- left: 0;
- width: 5px;
- height: 100%;
- background: linear-gradient(360deg,transparent,#3498db);
- }
- form:hover span:nth-child(4){
- bottom: 100%;
- transition: 1s;
- transition-delay: 0.75s;
- }
Advertisement
Add Comment
Please, Sign In to add comment