MIF_E31222313/public/auth/css/authstyle.css

278 lines
4.7 KiB
CSS

*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body{
background-color: #5A58E9;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
height: 100vh;
}
.container{
background-color: #fff;
border-radius: 30px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
position: relative;
overflow: hidden;
width: 768px;
max-width: 100%;
min-height: 480px;
}
.container p{
font-size: 14px;
line-height: 20px;
letter-spacing: 0.3px;
margin: 10px 0;
}
.container span{
font-size: 14px;
display: block;
margin-bottom: 15px;
text-align: center;
}
.container a{
color: #333;
font-size: 12px;
text-decoration: none;
margin: 10px 0 10px;
}
.container button{
background-color: #5A58E9;
color: #fff;
font-size: 12px;
padding: 10px 45px;
border: 1px solid transparent;
border-radius: 8px;
font-weight: 600;
letter-spacing: 0.5px;
text-transform: uppercase;
margin-top: 10px;
cursor: pointer;
}
.container button.hidden{
background-color: transparent;
border-color: #fff;
}
.container form{
background-color: #fff;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 0 40px;
height: 100%;
}
.container input{
background-color: #eee;
border: none;
margin: 5px 0;
padding: 10px 15px;
font-size: 13px;
border-radius: 8px;
width: 100%;
outline: none;
}
.form-container{
position: absolute;
top: 0;
height: 100%;
transition: all 0.6s ease-in-out;
}
form h1 {
margin-bottom: 7px;
}
.form-options {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0px;
width: 100%;
}
.password-container {
position: relative;
width: 100%;
}
.password-container input {
width: 100%;
padding-right: 40px;
padding: 10px 15px;
font-size: 13px;
border-radius: 8px;
background-color: #eee;
border: none;
outline: none;
}
.password-container i {
position: absolute;
top: 50%;
right: 10px;
transform: translateY(-50%);
cursor: pointer;
font-size: 14px;
color: #000000;
opacity: 0.3;
}
.confirm-password-container {
position: relative;
width: 100%;
}
.confirm-password-container input {
width: 100%;
padding-right: 40px;
padding: 10px 15px;
font-size: 13px;
border-radius: 8px;
background-color: #eee;
border: none;
outline: none;
margin-bottom: 15px;
}
.confirm-password-container i {
position: absolute;
top: 43%;
right: 10px;
transform: translateY(-50%);
cursor: pointer;
font-size: 14px;
color: #000000;
opacity: 0.3;
}
.remember-container {
display: flex;
align-items: center;
font-size: 12px;
color: #333;
}
.remember-container input[type="checkbox"] {
width: 12px;
height: 12px;
margin-right: 8px;
accent-color: #5A58E9; /* Warna sesuai tema */
cursor: pointer;
}
.forget-password {
font-size: 12px;
color: #5A58E9;
text-decoration: none;
cursor: pointer;
transition: color 0.2s;
}
.forget-password:hover {
color: #5c6bc0; /* Efek hover */
}
.sign-in{
left: 0;
width: 50%;
z-index: 2;
}
.container.active .sign-in{
transform: translateX(100%);
}
.sign-up{
left: 0;
width: 50%;
opacity: 0;
z-index: 1;
}
.container.active .sign-up{
transform: translateX(100%);
opacity: 1;
z-index: 5;
animation: move 0.6s;
}
@keyframes move{
0%, 49.99%{
opacity: 0;
z-index: 1;
}
50%, 100%{
opacity: 1;
z-index: 5;
}
}
.toggle-container{
position: absolute;
top: 0;
left: 50%;
width: 50%;
height: 100%;
overflow: hidden;
transition: all 0.6s ease-in-out;
z-index: 1;
}
.container.active .toggle-container{
transform: translateX(-100%);
}
.toggle{
background-color: #fff;
height: 100%;
color: #fff;
position: relative;
left: -100%;
height: 100%;
width: 200%;
transform: translateX(0);
transition: all 0.6s ease-in-out;
}
.container.active .toggle{
transform: translateX(50%);
}
.toggle-panel {
/* Menyusun gambar ke kanan */
display: flex;
justify-content: flex-end; /* Agar gambar terposisi ke kanan */
align-items: center;
height: 100%;
padding: 0;
}
.toggle-image {
max-width: 95%; /* Mengecilkan ukuran gambar */
height: auto; /* Menjaga proporsi gambar tetap */
object-fit: contain; /* Agar gambar tidak terdistorsi atau ter-zoom */
margin-right: -290px; /* Memberikan jarak di kanan untuk membuat gambar lebih mepet */
}