
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


section {
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    height:100vh;
    background: url(images/register.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    animation: animatebg 5s linear infinite;
}

@keyframes animatebg {
    100%{
        filter: hue-rotate(360deg);
    }
}

.registration-box {
    position: relative;
    width: 500px;
    height: 90%;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

h2 {
    font-size: 2em;
    color: #fff;
    text-align: center;
}

.input-box {
    position: relative;
    width: 400px;
    margin: 30px 0;
    border-bottom: 2px solid #fff;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #fff;
    pointer-events: none;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -5px;
    color: #000;
    font-size: 1em;
    font-weight: bold;
    transition: 0.5s;
}

.input-box input {
    width:100%;
    height: 50px;
    background: transparent;
    border:none;
    outline:none;
    font-size: 1em;
    color:greenyellow;
    padding: 0 8px 0 5px;
}

.registration-error {
    margin: 10px 0px 10px 0px;
    font-size: 0.9em;
    color: red;
    display: flex;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    display: none;
}

button {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    background: #fff;
    cursor: pointer;
    font-size: 1em;
    border-radius: 40px;
    color: #000;
    font-weight: 600;
}

.login {
    font-size: 0.9em;
    color: #fff;
    text-align: center;
    margin: 20px 0px 10px;
    font-weight: bold;
}

.login a {
    color: #fff;
    text-decoration: none;
}

.login a:hover {
    text-decoration: underline;
    color: blue;
}


@media (max-width: 500px) {
    .registration-box {
        width: 100%;
        height: 100vh;
        border: none;
        border-radius: 0;
    }

    .input-box {
        width: 290px;
    }
}