@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@600&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
}

body {
    min-height: 100vh;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(banner.jpg);
    background-size: cover;
}

header {
    padding: 15px;
}

#social-media{
    display: flex;
    justify-content: right;
    align-items: center;
}
#social-media>a{
    margin: auto 1%;
    font-size: 140%;
    color: #fff;
    transition: 200ms;
}
#social-media>a:hover{
    scale: 120%;
}

.form-box {
    width: 380px;
    height: 480px;
    position: relative;
    margin: 6% auto 2% auto;
    background: #fff;
    overflow: hidden;
    bottom: 40px;
}

.button-box {
    width: 220px;
    margin: 35px auto;
    position: relative;
    box-shadow: 0 0 20px 9px #ff61241f;
    border-radius: 30px;
}

.toggle-btn {
    padding: 10px 30px;
    cursor: pointer;
    background: transparent;
    border: 0;
    outline: 0;
    position: relative;
}

#btn {
    top: 0;
    left: 0;
    position: absolute;
    width: 110px;
    height: 100%;
    background: linear-gradient(to right, #ff105f, #ffad06);
    border-radius: 30px;
    transition: 0.5s;

}

.input-group {
    top: 180px;
    position: absolute;
    width: 280px;
    transition: .5s;

}

.input-id {
    width: 100%;
    padding: 10px 0;
    margin: 5px 0;
    border-left: 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid #999;
    outline: none;
    background: transparent;

}

.submit-btn {
    width: 85%;
    padding: 10px 30px;
    cursor: pointer;
    display: block;
    margin: auto;
    background: linear-gradient(to right, #ff105f, #ffad06);
    border: 0;
    outline: none;
    border-radius: 30px;
}

.check-box {
    margin: 30px 10px 30px 0;
}

span {
    color: #777;
    font-size: 12px;
    bottom: 68px;
    position: absolute;

}
@media screen and (max-width: 300px) {
  .input-group,.submit-btn, input[type=submit] {
    width: 50%;
    margin-top: 0;
  }
}
#login {
    left: 50px;
}

#register {
    left: 450px;
}

/* Here is my work */
@media screen and (max-width: 400px){
    body{
        background-size: inherit;
    }
    .form-box{
        margin-top: 20%;
    }
    header nav#social-media a{
        padding: 1%;
        margin: 0 2%;
    }
}