:root {
    --bg-color: #006CFF;
    --bg-color-2: #FFF;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1F293A;
    min-height: 100vh;
}

.container {
    position: relative;
    width: 256px;
    height: 256px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container span {
    position: absolute;
    left: 0;
    background: var(--bg-color);
    width: 32px;
    height: 6px;
    border-radius: 8px;
    transform-origin: 128px;
    transform: scale(2.2) rotate(calc(var(--i) * (360deg / 50)));
    animation: animateBlink 3s linear infinite;
    animation-delay: calc(var(--i) * (3s / 50));
}

@keyframes animateBlink {
    0% {
        background: var(--bg-color-2);
    }
    25% {
        background: var(--bg-color);
    }
}

.login-box {
    position: absolute;
    width: 400px;
}

.login-box form {
    width: 100%;
    padding: 0 50px;
}

h2 {
    font-size: 2em;
    color: #006CFF;
    text-align: center;
}

.input-box {
    position: relative;
    margin: 25px 0;
}

.input-box input {
    width: 100%;
    height: 50px;
    background: transparent;
    border: 2px solid #2C4766;
    outline: none;
    border-radius: 40px;
    font-size: 1em;
    color: #FFF;
    padding: 0 20px;
    transition: 0.5s;
}

.input-box input:focus,
.input-box input:valid {
    border-color: #0EF;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #FFF;
    pointer-events: none;
    transition: 0.5s ease;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: 1px;
    font-size: 0.8em;
    background-color: #1F293A;
    padding: 0 6px;
    color: #0EF;
}

.forgot-password {
    margin: -15px 0 10px;
    text-align: center;
}

.forgot-password a {
    font-size: 0.85em;
    color: #FFF;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    height: 45px;
    background: #006CFF;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1em;
    color: #1F293A;
    font-weight: 600;
}

.btn:hover {
    background: #FFF;
}

.signup-link {
    margin: 20px 0 10px;
    text-align: center;
}

.signup-link a {
    font-size: 1em;
    color: #FFF;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

@media (width < 800px) {
    .container span {
        background: var(--bg-color);
        width: 10px;
        height: 3px;
        border-radius: 8px;
        transform-origin: 130px;
        transform: scale(1.8) rotate(calc(var(--i) * (360deg / 50)));
        animation: animateBlink 3s linear infinite;
        animation-delay: calc(var(--i) * (3s / 50));
    }
}

@media (width < 538px) {
    .container span {
        display: none;
    }
}