mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-27 20:50:21 +08:00
161 lines
3.8 KiB
HTML
161 lines
3.8 KiB
HTML
<div class="container">
|
|
<input type="checkbox" id="signup_toggle">
|
|
<form class="form">
|
|
<div class="form_front">
|
|
<div class="form_details">Login</div>
|
|
<input placeholder="Username" class="input" type="text">
|
|
<input placeholder="Password" class="input" type="text">
|
|
<button class="btn">Login</button>
|
|
<span class="switch">Don't have an account?
|
|
<label class="signup_tog" for="signup_toggle">
|
|
Sign Up
|
|
</label>
|
|
</span>
|
|
</div>
|
|
<div class="form_back">
|
|
<div class="form_details">SignUp</div>
|
|
<input placeholder="Firstname" class="input" type="text">
|
|
<input placeholder="Username" class="input" type="text">
|
|
<input placeholder="Password" class="input" type="text">
|
|
<input placeholder="Confirm Password" class="input" type="text">
|
|
<button class="btn">Signup</button>
|
|
<span class="switch">Already have an account?
|
|
<label class="signup_tog" for="signup_toggle">
|
|
Sign In
|
|
</label>
|
|
</span>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by AmIt-DasIT - Tags: form, 3d card, 3d cool effect */
|
|
.container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.form {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
transform-style: preserve-3d;
|
|
transition: all 1s ease;
|
|
}
|
|
|
|
.form .form_front {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 20px;
|
|
position: absolute;
|
|
backface-visibility: hidden;
|
|
padding: 65px 45px;
|
|
border-radius: 15px;
|
|
box-shadow: inset 2px 2px 10px rgba(0,0,0,1),
|
|
inset -1px -1px 5px rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.form .form_back {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 20px;
|
|
position: absolute;
|
|
backface-visibility: hidden;
|
|
transform: rotateY(-180deg);
|
|
padding: 65px 45px;
|
|
border-radius: 15px;
|
|
box-shadow: inset 2px 2px 10px rgba(0,0,0,1),
|
|
inset -1px -1px 5px rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.form_details {
|
|
font-size: 25px;
|
|
font-weight: 600;
|
|
padding-bottom: 10px;
|
|
color: white;
|
|
}
|
|
|
|
.input {
|
|
width: 245px;
|
|
min-height: 45px;
|
|
color: #fff;
|
|
outline: none;
|
|
transition: 0.35s;
|
|
padding: 0px 7px;
|
|
background-color: #212121;
|
|
border-radius: 6px;
|
|
border: 2px solid #212121;
|
|
box-shadow: 6px 6px 10px rgba(0,0,0,1),
|
|
1px 1px 10px rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.input::placeholder {
|
|
color: #999;
|
|
}
|
|
|
|
.input:focus.input::placeholder {
|
|
transition: 0.3s;
|
|
opacity: 0;
|
|
}
|
|
|
|
.input:focus {
|
|
transform: scale(1.05);
|
|
box-shadow: 6px 6px 10px rgba(0,0,0,1),
|
|
1px 1px 10px rgba(255, 255, 255, 0.6),
|
|
inset 2px 2px 10px rgba(0,0,0,1),
|
|
inset -1px -1px 5px rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.btn {
|
|
padding: 10px 35px;
|
|
cursor: pointer;
|
|
background-color: #212121;
|
|
border-radius: 6px;
|
|
border: 2px solid #212121;
|
|
box-shadow: 6px 6px 10px rgba(0,0,0,1),
|
|
1px 1px 10px rgba(255, 255, 255, 0.6);
|
|
color: #fff;
|
|
font-size: 15px;
|
|
font-weight: bold;
|
|
transition: 0.35s;
|
|
}
|
|
|
|
.btn:hover {
|
|
transform: scale(1.05);
|
|
box-shadow: 6px 6px 10px rgba(0,0,0,1),
|
|
1px 1px 10px rgba(255, 255, 255, 0.6),
|
|
inset 2px 2px 10px rgba(0,0,0,1),
|
|
inset -1px -1px 5px rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.btn:focus {
|
|
transform: scale(1.05);
|
|
box-shadow: 6px 6px 10px rgba(0,0,0,1),
|
|
1px 1px 10px rgba(255, 255, 255, 0.6),
|
|
inset 2px 2px 10px rgba(0,0,0,1),
|
|
inset -1px -1px 5px rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.form .switch {
|
|
font-size: 13px;
|
|
color: white;
|
|
}
|
|
|
|
.form .switch .signup_tog {
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.container #signup_toggle {
|
|
display: none;
|
|
}
|
|
|
|
.container #signup_toggle:checked + .form {
|
|
transform: rotateY(-180deg);
|
|
}
|
|
</style>
|