@import url("http://fonts.googleapis.com/css2?family-Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background: black;
    position: relative;
}

/* -- 2D Scene -- */

/* Glow on horizon */
.horizon {
    position: absolute;
    left: 0;
    z-index: 1;
    bottom: 50%;
    width: 100%;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(50,205,50,1), transparent);
    filter: blur(120px);
}

/* Scene container */
.stage {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
}

/* -- 3D Cubes -- */

/* Container for animated cube-grid */
.cubeCanvas {
    position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
}
 
/* -- Login Panel -- */

/* Wrapper for login panel */
.wrapper {
    z-index: 3;
}

.wrapper .form-box {
    width: 100%;
    padding: 40px;
}

.form-box h2 {
    font-size: 2.3em;
    color: rgb(0, 189, 94);
    text-align: center;
    text-shadow: 2px 2px black;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid rgba(0,120,60);
    margin: 30px 0;
}

/* Input labels */
.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: rgba(0,120,60);
    font-weight: 500;
    pointer-events: none;
    transition: .5s;
    text-shadow: 2px 2px black;
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: -5px;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #fff;
    font-weight: 600;
    padding: 0 35px 0 5px;
}

.input-box .icon {
    position: absolute;
    right: 8px;
    font-size: 1.4em;
    color: rgba(50,205,50);
    line-height: 57px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.unlocked {
    opacity: 0;
    transform: scale(0.5);
}

.person {
    opacity: 0;
    transform: scale(0.5);
}

.input-box input:focus~.locked,
.input-box input:valid~.locked {
    opacity: 0;
    transform: scale(1.6);
}

.input-box input:focus~.unlocked,
.input-box input:valid~.unlocked {
    opacity: 1;
    transform: scale(1);
}

.input-box input:focus~.cirlce,
.input-box input:valid~.cirlce {
    opacity: 0;
    transform: scale(1.6);
}

.input-box input:focus~.person,
.input-box input:valid~.person {
    opacity: 1;
    transform: scale(1);
}

.btn {
    width: 60%;
    height: 45px;
    background-color: rgba(0,120,60);
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    font-weight: 500;
    margin-left: 20%;
    text-shadow: 2px 2px black;
}

.btn:active {
    background-color: rgba(50,205,50);
}

@media screen and (min-width: 600px) {

    /* Wrapper for login panel */
    .wrapper {
        position: relative;
        width: 400px;
        height: 440px;
        z-index: 3;
        background: transparent;
        border: 2px solid rgba(50, 205, 50, 0.5);
        border-radius: 20px;
        backdrop-filter: blur(20px);
        box-shadow: 0 0 30px rgba(0, 0, 0, .8);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .btn {
        width: 100%;
        height: 45px;
        background-color: rgba(0,120,60);
        border: none;
        outline: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 1em;
        color: #fff;
        font-weight: 500;
        margin-left: 0;
    }

}