Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&family=Roboto&display=swap');
- *{
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
- body{
- min-height: 100vh;
- background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url(images/night.jpg);
- font-family: 'Poppins', sans-serif;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 30px;
- }
- header{
- width: 100%;
- height: 10vh;
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .logo{
- width: 100%;
- height: 10vh;
- background-color: midnightblue;
- display: flex;
- align-items: center;
- justify-content: center;
- color: #fff;
- clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
- padding: 10px;
- line-height: 1.3rem;
- border-top-left-radius: 10px;
- border-top-right-radius: 10px;
- }
- .logo li p{
- width: 130px;
- margin-left: 10px;
- font-size: 20px;
- }
- .logo .fas{
- padding-right: 1rem;
- font-size: 70 px;
- }
- .container{
- position: relative;
- max-width: 430px;
- width: 100%;
- background-color: rgb(255, 255, 255);
- box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
- border-radius: 10px;
- overflow: hidden;
- }
- .container .forms{
- display: flex;
- align-items: center;
- width: 200%;
- height: 440px;
- transition: height 0.2s ease;
- }
- .container .form{
- width: 50%;
- padding: 30px;
- background-color: #fff;
- transition: margin-left 0.18s ease;
- }
- .container.active .login{
- margin-left: -50%;
- opacity: 0;
- transition: margin-left 0.18s ease, opacity 0.15s ease;
- }
- .container .signup{
- opacity: 0;
- transition: opacity 0.09s ease;
- }
- .container.active .signup{
- opacity: 1;
- transition: opacity 0.2s ease;
- }
- .container.active .forms{
- height: 599px;
- }
- .container .form .title{
- position: relative;
- font-size: 27px;
- font-weight: 600;
- }
- .form .title::before{
- content: '';
- position: absolute;
- left: 0;
- height: 3px;
- width: 82px;
- background-color: cyan;
- border-radius: 25px;
- }
- .form .input-field{
- margin-top: 30px;
- height: 50px;
- width: 100%;
- position: relative;
- }
- .input-field input{
- position: absolute;
- height: 100%;
- width: 100%;
- padding: 0 35px;
- border: none;
- outline: none;
- font-size: 16px;
- border-bottom: 2px solid #ccc;
- border-top: 2px solid transparent;
- transition: all 0.2s ease;
- }
- .input-field input:is(:focus, :valid){
- border-bottom-color: orange;
- }
- .input-field .fas{
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- color: black;
- font-size: 23px;
- transition: all 0.2s ease;
- }
- .input-field input:is(:focus, :valid) ~ .fas{
- color: orange;
- }
- .input-field .fas.icon{
- left: 0;
- }
- .input-field .fas.hidePW{
- right: 0;
- cursor: pointer;
- padding: 10px;
- }
- .form .checkbox-text{
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-top: 20px;
- }
- .checkbox-text .checkbox-content{
- display: flex;
- align-items: center;
- }
- .checkbox-content input{
- accent-color: #4070f4;
- margin: 0 8px -2px 4px;
- }
- .form .text{
- color: #333;
- font-size: 14px;
- }
- .form a.text{
- color: blue;
- text-decoration: none;
- }
- .form a:hover{
- text-decoration: underline;
- }
- .form a:hover{
- text-decoration: underline;
- }
- .form .button{
- margin-top: 35px;
- }
- .form .button input{
- border: none;
- background-color: rgb(238, 175, 56);
- letter-spacing: 1px;
- border-radius: 5px;
- font-size: 20px;
- font-weight: 500;
- cursor: pointer;
- transition: all 0.3s ease;
- }
- .button input:hover{
- background-color: orange;
- }
- .form .login-sign{
- margin-top: 30px;
- text-align: center;
- }
Advertisement
Add Comment
Please, Sign In to add comment