234 lines
4.3 KiB
CSS
234 lines
4.3 KiB
CSS
/* Global Styles */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: Roboto, -apple-system, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
|
|
background: #3b4465;
|
|
}
|
|
|
|
.forms-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 22px;
|
|
letter-spacing: 1px;
|
|
color: #fff;
|
|
text-align: center;
|
|
}
|
|
|
|
.switchers {
|
|
display: flex;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.switcher {
|
|
position: relative;
|
|
cursor: pointer;
|
|
display: block;
|
|
margin-right: 20px;
|
|
padding: 10px;
|
|
text-transform: uppercase;
|
|
font-family: inherit;
|
|
font-size: 16px;
|
|
letter-spacing: .5px;
|
|
color: #999;
|
|
background-color: transparent;
|
|
border: none;
|
|
outline: none;
|
|
transform: translateX(0);
|
|
transition: all .3s ease-out;
|
|
}
|
|
|
|
.switcher:last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.switcher.is-active {
|
|
color: #fff;
|
|
background-color: #a7e245;
|
|
}
|
|
|
|
.switcher:hover {
|
|
color: #fff;
|
|
background-color: #8dcf37;
|
|
}
|
|
|
|
.form-wrapper {
|
|
display: none;
|
|
width: 100%;
|
|
max-width: 90%; /* Lebar lebih lebar pada tampilan mobile */
|
|
margin: 0 auto;
|
|
transition: transform .5s ease-in-out, opacity .5s ease-in-out;
|
|
}
|
|
|
|
.form-wrapper.is-active {
|
|
display: block;
|
|
}
|
|
|
|
.underline {
|
|
position: absolute;
|
|
bottom: -5px;
|
|
left: 0;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
width: 100%;
|
|
height: 2px;
|
|
}
|
|
|
|
.underline::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: inherit;
|
|
display: block;
|
|
width: inherit;
|
|
height: inherit;
|
|
background-color: currentColor;
|
|
transition: transform .2s ease-out;
|
|
}
|
|
|
|
.switcher-login .underline::before {
|
|
transform: translateX(101%);
|
|
}
|
|
|
|
.switcher-signup .underline::before {
|
|
transform: translateX(-101%);
|
|
}
|
|
|
|
.form-wrapper.is-active .underline::before {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.form {
|
|
overflow: hidden;
|
|
width: 100%;
|
|
padding: 30px 100px; /* Padding tetap untuk semua tampilan */
|
|
border-radius: 5px;
|
|
background-color: #fff;
|
|
transform-origin: top;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center; /* Memposisikan isi form di tengah */
|
|
}
|
|
|
|
.form fieldset {
|
|
position: relative;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
}
|
|
|
|
.input-block {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.input-block label {
|
|
font-size: 14px;
|
|
color: #a1b4b4;
|
|
}
|
|
|
|
.input-block input {
|
|
display: block;
|
|
width: 270px;
|
|
margin-top: 0 auto;
|
|
padding: 10px 15px;
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
color: #3b4465;
|
|
background: #eef9fe;
|
|
border: 1px solid #cddbef;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.input-block.password-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.input-block.password-wrapper .toggle-password {
|
|
position: absolute;
|
|
top: 67%;
|
|
right: 10px;
|
|
transform: translateY(-50%);
|
|
cursor: pointer;
|
|
color: #a1b4b4;
|
|
}
|
|
|
|
.input-block.password-wrapper .toggle-password:hover {
|
|
color: #3b4465;
|
|
}
|
|
|
|
|
|
.form [type='submit'] {
|
|
display: block;
|
|
min-width: 120px;
|
|
margin: 30px auto 10px;
|
|
font-size: 18px;
|
|
line-height: 40px;
|
|
border-radius: 25px;
|
|
border: none;
|
|
transition: all .3s ease-out;
|
|
}
|
|
|
|
.btn-login {
|
|
color: #fbfdff;
|
|
background: #a7e245;
|
|
}
|
|
|
|
.btn-signup {
|
|
color: #a7e245;
|
|
background: #fbfdff;
|
|
box-shadow: inset 0 0 0 2px #a7e245;
|
|
}
|
|
|
|
/* Mobile Styles */
|
|
@media (max-width: 768px) {
|
|
.forms-section {
|
|
padding: 20px;
|
|
}
|
|
.form-wrapper {
|
|
display: none;
|
|
width: 100%;
|
|
max-width: 90%; /* Lebar lebih lebar pada tampilan mobile */
|
|
margin: 0 auto;
|
|
transition: transform .5s ease-in-out, opacity .5s ease-in-out;
|
|
}
|
|
.form {
|
|
padding: 50px;
|
|
}
|
|
}
|
|
|
|
/* Desktop Styles */
|
|
@media (min-width: 769px) {
|
|
.section-title {
|
|
font-size: 32px;
|
|
letter-spacing: 1px;
|
|
color: #fff;
|
|
}
|
|
|
|
.form-wrapper {
|
|
max-width: 500px; /* Lebar lebih besar untuk desktop */
|
|
}
|
|
|
|
.form {
|
|
padding: 30px 120px; /* Padding lebih besar untuk desktop */
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center; /* Memposisikan isi form di tengah */
|
|
}
|
|
|
|
.input-block input {
|
|
width: 400px; /* Lebar input */
|
|
margin: 0 auto; /* Memposisikan input di tengah */
|
|
}
|
|
}
|