FrontPastel/frontend/src/LoginForm.css

191 lines
3.5 KiB
CSS
Raw Normal View History

2024-04-22 04:41:09 +00:00
/* POPPINS FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body{
background: url("fondo_pasteles.jpg");
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
overflow: hidden;
}
.wrapper{
display: flex;
justify-content: center;
align-items: center;
2024-04-26 19:49:27 +00:00
min-height: 80vh;
border-radius: 4%;
2024-04-22 04:41:09 +00:00
background: rgba(39, 39, 39, 0.5);
}
.link:hover, .active{
border-bottom: 2px solid #fff;
}
.btn:hover{
background: rgba(255, 255, 255, 0.3);
}
#registerBtn{
margin-left: 15px;
}
.btn.white-btn{
background: rgba(255, 255, 255, 0.7);
}
.btn.btn.white-btn:hover{
background: rgba(255, 255, 255, 0.5);
}
.form-box{
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 512px;
height: 420px;
overflow: hidden;
z-index: 2;
2024-04-24 05:23:57 +00:00
2024-04-22 04:41:09 +00:00
}
.login-container{
position: absolute;
left: 4px;
width: 500px;
opacity: 1;
display: flex;
flex-direction: column;
transition: .5s ease-in-out;
2024-04-24 05:23:57 +00:00
gap: 7px;
2024-04-22 04:41:09 +00:00
}
.register-container{
position: absolute;
right: -520px;
width: 500px;
display: flex;
flex-direction: column;
transition: .5s ease-in-out;
2024-04-24 05:23:57 +00:00
gap: 7px;
2024-04-22 04:41:09 +00:00
}
2024-04-26 19:49:27 +00:00
.password-container{
position: absolute;
right: -520px;
width: 500px;
display: flex;
flex-direction: column;
transition: .5s ease-in-out;
gap: 7px;
}
2024-04-22 04:41:09 +00:00
.top span{
color: #fff;
font-size: small;
padding: 10px 0;
display: flex;
justify-content: center;
}
2024-04-26 19:49:27 +00:00
.two span a{
font-weight: 500;
color: #fff;
margin-left: 5px;
}
2024-04-22 04:41:09 +00:00
.top span a{
font-weight: 500;
color: #fff;
margin-left: 5px;
}
2024-04-26 19:49:27 +00:00
.top2 span a{
font-weight: 500;
color: #fff;
margin-left: 5px;
}
2024-04-22 04:41:09 +00:00
header{
color: #fff;
font-size: 30px;
text-align: center;
padding: 10px 0 30px 0;
}
.two-forms{
display: flex;
gap: 20px;
}
.input-field{
font-size: 15px;
background: rgba(255, 255, 255, 0.2);
color: #fff;
height: 50px;
width: 100%;
padding: 0 10px 0 45px;
border: none;
border-radius: 30px;
outline: none;
transition: .2s ease;
}
.input-field:hover, .input-field:focus{
background: rgba(255, 255, 255, 0.25);
}
::-webkit-input-placeholder{
color: #fff;
}
.input-box i{
position: relative;
top: -35px;
left: 17px;
color: #fff;
}
.submit{
font-size: 15px;
font-weight: 500;
color: black;
height: 45px;
width: 100%;
border: none;
border-radius: 30px;
outline: none;
background: rgba(255, 255, 255, 0.7);
cursor: pointer;
transition: .3s ease-in-out;
}
.submit:hover{
background: rgba(255, 255, 255, 0.5);
box-shadow: 1px 5px 7px 1px rgba(0, 0, 0, 0.2);
}
.two-col{
display: flex;
justify-content: space-between;
color: #fff;
font-size: small;
margin-top: 10px;
2024-04-24 05:23:57 +00:00
margin-bottom: 10px;
2024-04-26 19:49:27 +00:00
margin-left: 10px;
2024-04-22 04:41:09 +00:00
}
.two-col .one{
display: flex;
gap: 5px;
}
.two label a{
text-decoration: none;
color: #fff;
}
.two label a:hover{
text-decoration: underline;
}
2024-04-24 05:23:57 +00:00
2024-04-22 04:41:09 +00:00
@media only screen and (max-width: 540px) {
.wrapper{
min-height: 100vh;
}
.form-box{
width: 100%;
height: 500px;
}
.register-container, .login-container{
width: 100%;
padding: 0 20px;
}
.register-container .two-forms{
flex-direction: column;
gap: 0;
}
}