@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;
    min-height: 100vh;
    background: #f0f8ff;
}

h5,
a {
    color: #11009e;
}

a:hover {
    color: rgb(0, 72, 128);
    text-decoration: none;
}

.wrapper {
    position: relative;
    width: 800px;
    height: 500px;
    background: #fff;
    border: 2px solid #11009e;
    overflow: hidden;
}

.wrapper .form-box {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wrapper .form-box.login {
    left: 0;
    padding: 0 60px 0 40px;
}

.form-box h2 {
    font-size: 20px;
    color: #000;
    text-align: center;
}

.form-box .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 25px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border-bottom: 2px solid #000;
    font-size: 16px;
    color: #000;
    font-weight: 500;
    transition: 0.5s;
}

.input-box input:focus,
.input-box input:valid {
    border-bottom-color: #11009e;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 16px;
    color: #000;
    pointer-events: none;
    transition: 0.5s;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -5px;
    color: #11009e;
}

.input-box i {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 18px;
    color: #000;
    transition: 0.5s;
}

.input-box .toggle-password {
    right: 10%;
}

.input-box input:focus ~ i,
.input-box input:valid ~ i {
    color: #11009e;
}

.form-group {
    color: #11009e;
    font-weight: 500;
    margin: 25px 0;
}

.btn {
    position: relative;
    width: 100%;
    height: 45px;
    background: transparent;
    margin-bottom: 5px;
    border: 2px solid #11009e;
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    z-index: 1;
    overflow: hidden;
}

.form-buttons {
    text-align: center;
}

.form-buttons a {
    color: #11009e;
}

.form-buttons a:hover {
    color: rgb(0, 145, 255);
    text-decoration: none;
}

.btn::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 300%;
    background: linear-gradient(#081b29, #11009e, #081b29, #11009e);
    z-index: -1;
    transition: 0.5s;
}

.btn:hover::before {
    top: 0;
}

.wrapper .info-text {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wrapper .info-text.login {
    right: 35px;
    text-align: right;
    padding: 0 40px 60px 150px;
}

.info-text h2 {
    font-size: 36px;
    color: #000;
    line-height: 1.3;
    text-transform: uppercase;
}

.info-text p {
    font-size: 16px;
    color: #000;
}

.wrapper .bg-animate {
    position: absolute;
    top: -4px;
    right: 0;
    width: 850px;
    height: 600px;
    background: linear-gradient(45deg, #081b29, #11009e);
    border-bottom: 3px solid #11009e;
    transform: rotate(10deg) skewY(40deg);

    transform-origin: bottom right;
}

.img-logo {
    height: 35%;
    width: 135%;
    max-height: 90%;
    max-width: 135%;
    border: 0;
    background-color: transparent;
}

@media (max-width: 768px) {
    .wrapper {
        width: 700px;
        height: 400px;
    }

    .form-box h2 {
        font-size: 15px;
    }

    .wrapper .info-text {
        order: -1;
        padding: 20px;
    }

    .info-text h2 {
        font-size: 28px;
    }

    .info-text p {
        font-size: 14px;
    }

    .wrapper .bg-animate {
        top: -90px;
    }
}

@media (max-width: 480px) {
    .wrapper {
        width: 400px;
        height: 500px;
    }

    .wrapper .info-text.login {
        padding: 0 0 60px 100px;
    }

    h5 {
        font-size: 15px;
    }

    .wrapper .form-box.login {
        left: 0;
        padding: 0 30px 0 40px;
    }

    .form-box h2 {
        font-size: 15px;
    }

    .form-box .input-box {
        width: 150%;
        margin: 25px 0;
    }

    .input-box label {
        font-size: 15px;
    }

    .input-box input {
        font-size: 12px;
    }

    .input-box i {
        font-size: 13px;
    }

    .form-group {
        color: #11009e;
        font-weight: 500;
        margin: 10px 0;
    }

    .btn {
        height: 35px;
        font-size: 13px;
        color: #fff;
    }

    .info-text h2 {
        font-size: 24px;
    }

    .info-text p {
        font-size: 12px;
    }

    .wrapper .bg-animate {
        display: none;
    }
}
