@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');
* {
    font-family: 'Roboto', sans-serif;
    padding: 0;
    margin: 0;
    outline: none;
    box-sizing: border-box;
}

html {
    background-color: #09081a;
}


body {
    background: url(bg.jpg) no-repeat fixed center/cover;   
    color: #e2daf1;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    min-height: 100vh;
}
@media (min-width: 1024px) {
    .container {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        min-height: 100vh;
    }
}


section {
    text-align: center;
    font-size: 1.2em;
    padding: 40px;
    width: 500px;
   
}

section h1 {
    font-size: 2em;
}



.form-box {
    background-color: #bd6eeb00;
    backdrop-filter: blur(2.5rem);
    width: 370px;
    padding: 38px 20px;
    outline: 1px solid rgba(255, 255, 255, 0.473);
    border-radius: 10px;
    transition: 0.8s;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.register {
    transition: 5s linear;
}

.login {
    transition: 5s linear;
}


.form-box h1 {
    text-align: center;
    padding-bottom: 1em; 
}

.input-box{
    width: 100%;
    height: 2.8em;
    margin-bottom: 20px;
    position: relative;
    background-color: transparent;
    box-sizing: border-box;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    transition: 0.6s;
    z-index: -1;
}

.input-box input:focus ~ .label,
.input-box input:valid ~ .label {
    transform: translateY(-185%);
}



.input-box input {
    width: 100%;
    height: 100%;
    color: #e2daf1;
    font-size: 16px;
    border-top: none;
    border-right: none;
    border-left: none;
    border-bottom: 2px solid #e2daf1;
    background-color: transparent;
    padding: 3px 42px 3px 10px;
}


.input-box i {
    color: #e2daf1;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translate(0, -50%);
}

.form-box .memory {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
}

.form-box .memory input {
    accent-color: #e2daf1;
   
}

a {
    text-decoration: none;
    color: #e2daf1;
    font-weight: 500;
    transition: 0.5s;
    cursor: pointer;
}
.form-box button {
    font-size: 18px;
    width: 100%;
    border-radius: 50px;
    border: none;
    color: #5e3bad;
    background-color: #e2daf1;
    margin: 1em 0;
    padding: 0.5em;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.form-box p {
    padding: 8px 0 0 0;

}

.display-none {
    display: none;
}

a:hover {
    text-decoration: underline;
    
}
