@import url('https://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;
    height: 100vh;
    background: #1f293a;
    background-image: url("../images/bg.jpg");
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-color:#030020;
}
.login-wrapper{
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    text-align: center;
    align-items: center;
    position: relative;
    justify-content: center;
    overflow: hidden;
}

.logo-wrapper{
    max-width: 500px;
    margin: 0 auto;
    padding-top: 25px;
}
.logo-wrapper img{
    max-width: 300px;
}
.container {
    position: relative;
    width: 256px;
    height: 190px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.container span {
    position: absolute;
    left: 25px;
    width: 25px;
    height: 6px;
    background: #2c4766;
    border-radius: 8px;
    transform-origin: 100px;
    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: #0ef;
    }

    25% {
        background: #2c4766;
    }
}

.login-box {
    position: absolute;
    width: 250px;
    /* background: red; */
}

.login-box form {
    width: 100%;
    padding: 0;
    text-align: center;
}

h2 {
    font-size: 2em;
    color: #0ef;
    text-align: center;
}

.input-box {
    position: relative;
    margin:0 0 25px 0;
}

.input-box input {
    width: 100%;
    height: 40px;
    background: transparent;
    border: 2px solid #2c4766;
    outline: none;
    border-radius: 40px;
    font-size: 1em;
    color: #fff;
    padding: 0 20px;
    transition: .5s ease;
}

.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: .5s ease;
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: 1px;
    font-size: .8em;
    background: #1f293a;
    padding: 0 6px;
    color: #0ef;
}

.forgot-pass {
    margin: -15px 0 10px;
    text-align: center;
}

.forgot-pass a {
    font-size: .85em;
    color: #fff;
    text-decoration: none;
}

.forgot-pass a:hover {
    text-decoration: underline;
}
.btn-wrapper {
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
}
.btn-inner {
    width: 100%;
    height: auto;
}
.btn {
    width: 100%;
    height: 45px;
    background: #0ef;
    border: none;
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1em;
    color: #1f293a;
    font-weight: 600;
}
.link-forgot {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    font-weight: 400;
    padding: 10px 0 0 6px;
    line-height: 1;
    letter-spacing: normal;
    text-align: right !important;
    text-decoration: none;
}
.link-forgot:hover {
    text-decoration: none;
    color:#0ef;
}
.signup-link {
    margin: 20px 0 10px;
    text-align: center;
}

.signup-link a {
    font-size: 1em;
    color: #0ef;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container span {
        position: absolute;
        left: 20px;
        width: 25px;
        height: 6px;
        background: #2c4766;
        border-radius: 8px;
        transform-origin: 100px;
        transform: scale(2.2) rotate(calc(var(--i) * (360deg / 50)));
        animation: animateBlink 3s linear infinite;
        animation-delay: calc(var(--i) * (3s / 50));
    }
    .btn {
        width: 150px;
        margin: 0 auto;
    }
}

@media (max-width: 500px) {
    .login-box {
        position: absolute;
        width: 230px;
    }
    .container span {
        left: 25px;
    }
}
@media (max-width: 390px) {
    .container span {
        left: 40px;
        transform-origin: 89px;
    }
    .login-box {
        width: 200px;
    }
    .logo-wrapper img{
        max-width: 250px;
    }
}