@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Poppins', 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background-color: black;
    display: flex;
    margin: auto;
    align-items: center;
    justify-content: center;
}
.box{
    background-color: rgb(2, 2, 49);
    width: 50%;
    height: 80%;
    margin: 8rem 0;
    padding: 4rem 0;
    border-radius: 1rem;
    box-shadow: 4px 6px 4px rgba(255, 255, 255, 0.7);
}


h1{
    font-weight: 600;
    font-size: 2.5rem;
    margin-top: 0.8rem;
}

p{
    font-weight: 200;
    font-size: 1rem;
    display: block;
    margin: 1rem 0;
}

.row{
    display: flex;
    justify-content: space-between;
    width: 50%;
    align-items: center;
    margin: auto;
    color: white;
}

span{
    display: block;
    color: #10B981;
}

.success{
    position: absolute;
    transform: translateX(50%);
    top: 56%;
    left: 60%;
    width: 100px;
    text-align: center;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #10B981;
    color: white;
    transition: 0.3s ease all;
    /* display: none; */
    opacity: 0;
}

.success :active{
    opacity: 1;
}

input[type=button]{
    padding: 1rem 1.2rem;
    margin-bottom: 0.9rem;
    background-color: #10B981;
    color: whitesmoke;
    border: none;
    border-radius: 0.4rem;
    font-size: 0.8rem;
}

input[type=text]{
    padding: 1rem 1.2rem;
    width: 100%;
    margin: 0.9rem 0;
    text-align: center;
    color: #10B981;
    font-size: 1.2rem;
    border: none;  
}

input[type=password] {
    padding: 1rem 1.2rem;
    width: 100%;
    margin: 0.9rem 0;
    text-align: center;
    color: #10B981;
    font-size: 1.2rem;
    border: none;
}
.bar{
    width: 100%;
    height: 5px;
    background-color: #10B981;
    margin-bottom: 30px;
   
}

.row #copy{
    position: absolute;
    color: green;
    right: 10rem;
}

.row #eye {
    position: absolute;
    color: green;
    right: 28rem;
}

.eyeToggle {
    display: none;
}

/* media queries */
@media only screen and (max-width: 769px){
    .row{
        display: flex;
        flex-direction: column;
    }

    .box{
        width: 100%;
    }

    h1{
        font-size: 2rem;
        font-weight: 400;
    }

    p{
        text-align: start;
    }

    .row #copy{
        position: relative;
        left: 70px;
        bottom: 50px;
    }

    .row #eye{
        position: relative;
        left: 170px;
        top: -45px;
    }

    input[type=button]{
        display: block;
        width: 100%;
        
    }
}

@media only screen and (min-width: 770px){

    .box{
          width: 80%;
    }

    input[type=button]{
    margin-right: 20px;
    }

    .row #copy{
        position: absolute;
        color: green;
        right: 16rem;
    }
}

/* @media only screen and (min-width: 1024px){
.row #copy{
    position: absolute;
    right: 20rem;
}
}

@media only screen and (min-width: 1366px){
.row #copy{
    position: absolute;
    right: 28rem;
}

input[type=button]{
    width: 40%;
}
} */
