@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
*{
    margin: 0;
    padding: 0;
    font-family: 'poppins',sans-serif;
}
section{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    
    background-color: gray;
    background: url('bg.jpg')no-repeat;
    background-position: center;
    background-size: cover;
}
.form-box{
    position: relative;
    width: 400px;
    height: 400px;
    background: transparent;
    border: 2px solid #ccd5e4; /*rgba(255,255,255,0.5)*/;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    top: -50px;
}
.actions-box{
    position: relative;
    width: 400px;
    height: 400px;
    background: transparent;
    border: 2px solid #ccd5e4; /*rgba(255,255,255,0.5);*/
    border-radius: 20px;
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    top: -50px;
}
h2{
    font-size: 2em;
    color: #43515d;
    text-align: center;
}
.inputbox{
    position: relative;
    margin: 30px 0;
    width: 310px;
    border-bottom: 2px solid #43515d;
}
.inputbox label{
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #43515d;
    font-size: 1em;
    pointer-events: none;
    transition: .5s;
}
input:focus ~ label,
input:valid ~ label
{
top: -5px;
}
.inputbox input {
    width: 85%;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    padding:0 35px 0 5px;
    color: #43515d;
}
.inputbox ion-icon{
    position: absolute;
    right: 8px;
    color: #43515d;
    font-size: 1.2em;
    top: 20px;
}
.forget{
    margin: -15px 0 15px ;
    font-size: .9em;
    color: #43515d;
    display: flex;
    justify-content: space-between;  
}

.forget label input{
    margin-right: 3px;
    
}
.forget label a{
    color: #43515d;
    text-decoration: none;
}
.forget label a:hover{
    text-decoration: underline;
}
button{
    width: 100%;
    height: 40px;
    border-radius: 40px;
    background: #43515d;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
}
button p{
    color: #ccd5e4;
}
.possible-action{
    position: relative;
    margin: 30px 0;
    width: 310px;
    height: 30px;
    border-bottom: 2px solid #43515d;
    cursor: pointer;
}
.possible-action a{
    position: absolute;
    left: 50px;
    color: #43515d;
    font-size: 1em;
    text-decoration: none;
    top: -2px;
}
.possible-action ion-icon{
    position: absolute;
    left: 5px;
    font-size: 1.2em;
}

ion-icon{
    color: #43515d;
}
#close{
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2em;
}

.popup, .error{
    position: absolute;
    width: 370px;
    height: 70px;
    padding: 15px 15px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    top: -10%;
    transform: translate(0, -50%) scale(1);
    transition: all 1s ease-in-out;
    cursor: pointer;
}

.popup{
    color: #43515d;
    background: transparent;
    border: 2px solid #ccd5e4; 
}
.error{
    color: #D21312; 
    background: rgba(237, 43, 42, 0.1);
    border: 2px solid #F15A59; /* make red colors */
}

.popup.active, .error.active{
    opacity: 1;
    top: 7%;
    transform: translate(0, -50%) scale(1);
    transition: all 1s ease-in-out;
}
.popup h3 {
    margin: 5px 0px;
    color: #43515d;
}
.error h3 {
    margin: 5px 0px;
}

@keyframes slide-out {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

@-webkit-keyframes slide-out {
    0% { -webkit-transform: translateX(0%); }
    100% { -webkit-transform: translateX(-100%); }
}