I have the image below that shows a form HTML
.
IwantedtomakethiseffectintheformbutIcouldnot.
Cananyonehelpme?
Followmyattempt.
body {
font-family: 'Roboto', sans-serif;
background-color: rgb(40, 22, 111);
}
.logon {
position: relative;
top: 50% - 150px;
width: 300px;
height: 220px;
margin: 0 auto;
border: 4px rgb(93, 138, 168) solid;
border-radius: 20px;
background-color: rgb(255, 255, 255);
}
.logon * {
display: block;
margin: 5px auto;
}
.logon input,
.logon button {
font-size: .7em;
padding: 3px;
border-top: 2px rgb(10, 10, 10) solid;
border-right: 1px rgb(10, 10, 10) solid;
border-left: 1px rgb(10, 10, 10) solid;
border-bottom: 3px rgb(255, 255, 255) solid;
}
.logon h2 {
width: 250px;
height: 30px;
text-align: center;
color: rgb(0, 0, 0);
}
.logon input {
width: 250px;
height: 30px;
background: rgba(10, 10, 10, .3);
color: rgb(0, 0, 0);
}
.logon .lembra {
width: 250px;
height: 30px;
color: rgb(0, 0, 0);
}
.logon button {
width: 260px;
height: 40px;
background-color: rgb(0, 0, 0);
color: rgb(255, 255, 255);
}
<div class="logon">
<h2>Acessar Sistema</h2>
<input type="text" name="usuario" id="usuario" placeholder="usuário" />
<input type="password" name="senha" id="senha" placeholder="senha" />
<div class="lembra"></div>
<button id="logar">LOGIN</button>
</div>