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

:root{
    --white-color: hsl(0, 0%, 100%);
    --black-color: hsl(0, 0%, 0%);

    --body-font: "Poppins", sans-serif;
    --h1-font-size: 1.75rem;
    --normal-font-size: 1rem;
    --small-font-size: .813rem;

    --font-medium: 500;
}

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

body,
input,
button{
    font-size: var(--normal-font-size);
    font-family: var(--body-font);
}

body{
    color: var(--white-color);
}

input,
button{
    border: none;
    outline: none;
}

a{
    text-decoration: none;
}

img{
    max-width: 100%;
    height: auto;
}

.login{
    position: relative;
    height: 100vh;
    display: grid;
    align-items: center;
}

.login__img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.login__form{
    position: relative;
    background-color: hsla(0, 0%, 10%, .1);
    border: 2px solid var(--white-color);
    margin-inline: 1.5rem;
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(8px); /* membuat background blur*/
    
}

.login__title{
    text-align: center;
    font-size: var(--h1-font-size);
    font-weight: var(--font-medium);
    margin-bottom: 2rem;
}
.login__content,
.login__box{
    display: grid;
}

.login__content{
    row-gap: 1.75rem;
    margin-bottom: 1.5rem;
}

.login__box{
    grid-template-columns: max-content 1fr;
    align-items: center;
    column-gap: .75rem;
    border-bottom: 2px solid var(--white-color);
}

.login__icon,
.login__eye{
    font-size: 1.25rem;
}

.login__input{
    width: 100%;
    padding-block: .8rem;
    background: none;
    color: var(--white-color);
    position: relative;
    z-index: 1;
}

.login__box-input{
    position: relative;
}

.login__label{
    position: absolute;
    left: 0;
    top: 13px;
    font-weight: var(--font-medium);
    transition: top, .3s, font-size .3s;
}

.login__eye{
    position: absolute;
    right: 0;
    top: 18px;
    z-index: 10;
    cursor: pointer;
}

/* untuk mengubah pasword jadi titik2*/
.login__box:nth-child(2) input{
    padding-right: 1.8rem;
}

.login__check,
.login__check-group{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login__check{
    margin-bottom: 1.5rem;
}

.login__check-label,
.login__forgot,
.login__register{
    font-size: var(--small-font-size);
}

.login__check-label{
    position: relative;
    right: 4rem;
}

.login__check-group{
    column-gap: 5rem;
}

.login__check-input{
    width: 16px;
    height: 16px;
}

.login__forgot{
    color: var(--white-color);
}

.login__forgot:hover{
    text-decoration: underline;
}

.login__button{
    width: 100%;
    padding: 1rem;
    border-radius: .5rem;
    background-color: rgb(255, 186, 185);
    font-weight: var(--font-medium);
    cursor: pointer;
    margin-bottom: 2rem;
}

.masuk__button{
    width: 100%;
    padding: 1rem;
    border-radius: .5rem;
    background-color: rgb(154, 255, 172);
    font-weight: var(--font-medium);
    cursor: pointer;
    margin-bottom: 2rem;
}
@keyframes animate {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 400%;
    }
}

.login__button:hover{
    animation: animate 8s linear infinite;
}

.login__button:before{
    content: '';
            position: absolute;
            top: -5px;
            left: -5px;
            bottom: -5px;
            right: -5px;
            z-index: -1;
            background: linear-gradient(90deg,
                    #03a9f4, #f441a5, #ffeb3b,
                    #03a9f4);
            background-size: 400%;
            border-radius: 40px;
            opacity: 0;
            transition: 1s;
}

.login__button:hover:before{
    filter: blur(20px);
            opacity: 1;
            animation: animate 8s linear infinite;
}

.login__register{
    text-align: center;
}

.login__register a{
    color: var(--white-color);
    font-weight: var(--font-medium);
    
}

.login__register a:hover{
   text-decoration: underline; 
}

/* membuat pergerakan saat memasukkan email dan password*/
.login__input:focus + .login__label{
    top: -12px;
    font-size: var(--small-font-size);
}

/* membuat posisi tetap setelah pergerakan saat memasukkan email dan password*/
.login__input:not(:placeholder-shown).login__input:not(:focus) + .login__label{
    top: -12px;
    font-size: var(--small-font-size);
}

/* For medium devices */
@media screen and (min-width: 576px) {
    .login {
      justify-content: center;
    }
    .login__form {
      width: 432px;
      padding: 4rem 3rem 3.5rem;
      border-radius: 1.5rem;
    }
    .login__title {
      font-size: 2rem;
    }
  }