.username {
position: absolute;
color: #7a7a7a;
border: none;
border-bottom: 2px solid;
inline-size: 375px;
left: -10px;
top: 30px;
outline: none;
transition: all .3s;
z-index: -1;
}
.username:focus {
color: black;
}
.username:focus ~ .for-username,
.username:not(:placeholder-shown) ~ .for-username {
font-size: 12px;
opacity: .6;
top: 15px;
} /* НЕ РАБОТАЕТ ЭТА ЧАСТЬ */
.email {
color: #7a7a7a;
border: none;
position: absolute;
border-bottom: 2px solid;
inline-size: 375px;
top: 80px;
left: -10px;
outline: none;
transition: all .3s;
z-index: -1;
}
.email:focus {
color: black;
}
.password {
position: absolute;
color: #7a7a7a;
border: none;
border-bottom: 2px solid;
inline-size: 375px;
left: -10px;
top: 130px;
outline: none;
transition: all .3s;
z-index: -1;
}
.password:focus {
color: black;
}
.confirm-password {
color: #7a7a7a;
border: none;
border-bottom: 2px solid;
inline-size: 375px;
position: absolute;
top: 180px;
left: -10px;
outline: none;
transition: all .3s;
z-index: -1;
}
.confirm-password:focus {
color: black;
}
.form-group {
width: 500px;
position: absolute;
top: 120px;
left: 430px;
}
position: absolute;
color: #7a7a7a;
top: 20px;
left: -10px;
font-family: sans-serif;
font-size: 17px;
font-weight: bold;
transition: all .3s;
}
.for-email {
position: absolute;
color: #7a7a7a;
top: 70px;
left: -10px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 15px;
font-weight: bold;
transition: all .3s;
}
.for-password {
position: absolute;
color: #7a7a7a;
top: 120px;
left: -10px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 15px;
font-weight: bold;
transition: all .3s;
}
.for-confirm-password {
color: #7a7a7a;
position: absolute;
top: 170px;
left: -10px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 15px;
font-weight: bold;
transition: all .3s;
}