/*used chatgpt to make petals*/


*{
    box-sizing:border-box;
    font-family:'Ubuntu',sans-serif;
}

body{
    height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    background-image:
        linear-gradient(
        rgba(255, 220, 230, 0.08), 
        rgba(230, 190, 210, 0.12)),
        url("../images/login.png");


    background-size:cover;
    background-position:center;

}


.login-card{
    position:relative;
    z-index:2;

    width:420px;
    padding:50px;
    border-radius:30px;
    z-index: 10;

    background:
    rgba(255, 245, 245, .18);

    backdrop-filter:blur(22px);

    border:
    1px solid rgba(255, 255, 255, .60);

    box-shadow:
    0 15px 35px rgba(0, 0, 0, .18);

    text-align:center;

}

.logo{
    font-size:55px;
    margin-bottom:10px;
}

h1{
    color:#2d1b28;
    font-size: 42px;
    font-weight: 700;
    margin-bottom:10px;
}

.subtitle{
    color:#382431;
    font-size: 18px;
    font-weight:500;
    margin-bottom:35px;
}

.input-group{
    display:flex;
    align-items:center;

    background:
    rgba(255,255,255,.88);

    padding:15px;

    border-radius:15px;

    margin-bottom:20px;
}

.input-group i{
    color:#9b6e87;
    margin-right:12px;
}

.input-group input{
    border:none;
    background:none;
    outline:none;

    width:100%;

    color:#2f1f33;
}

.input-group input::placeholder{
    color:#6d5664;
    opacity: 1;
}

.login-btn{
    width:100%;

    border:none;

    padding:15px;

    border-radius:15px;

    background:#d887a7;

    color:white;

    font-size:16px;

    cursor:pointer;

    transition:.3s;
}

.login-btn:hover{
    background:#c96f93;
}

.register-link{
    display:block;

    margin-top:20px;

    text-decoration:none;

    color:#2d1b28;

    font-weight:700;
}

.register-link:hover{
    color:#d887a7;
}

.petals{
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.petals span{
    position: absolute;
    top: -50px;
    width: 18px;
    height: 18px;

    background: #ffe6ef;

    border-radius:
        0 100% 0 100%;
    
    opacity: 1;

    box-shadow: 
        0 0 6px rgba(255, 255, 255, .8);

    border: 1px solid rgba(255, 255, 255, .7);

    animation-timing-function: linear;
    animation-iteration-count: infinite;

    animation-name: fallLeft;
    animation-name: fallRight;

}

.petals span:nth-child(odd){
    animation-name: fallLeft;
}

.petals span:nth-child(even){
    animation-name: fallRight;
}

.petals span:nth-child(1){
    left:5%;
    animation-duration:12s;
    animation-delay:0s;
}

.petals span:nth-child(2){
    left:15%;
    animation-duration:9s;
    animation-delay:-2s;
}

.petals span:nth-child(3){
    left:30%;
    animation-duration:15s;
    animation-delay:-5s;
}

.petals span:nth-child(4){
    left:45%;
    animation-duration:11s;
    animation-delay:-1s;
}

.petals span:nth-child(5){
    left:60%;
    animation-duration:14s;
    animation-delay:-7s;
}

.petals span:nth-child(6){
    left:75%;
    animation-duration:10s;
    animation-delay:-3s;
}

.petals span:nth-child(7){
    left:85%;
    animation-duration:13s;
    animation-delay:-6s;
}

.petals span:nth-child(8){
    left:95%;
    animation-duration:8s;
    animation-delay:-4s;
}

@keyframes fallLeft {

    0%{
        transform:
            translateX(0px)
            translateY(-50px)
            rotate(0deg);

        opacity:0;
    }

    10%{
        opacity:1;
    }

    25%{
        transform:
            translateX(-40px)
            translateY(25vh)
            rotate(90deg);
    }

    50%{
        transform:
            translateX(30px)
            translateY(50vh)
            rotate(180deg);
    }

    75%{
        transform:
            translateX(-50px)
            translateY(75vh)
            rotate(270deg);
    }

    100%{
        transform:
            translateX(20px)
            translateY(110vh)
            rotate(360deg);

        opacity:0;
    }
}

@keyframes fallRight {

    0%{
        transform:
            translateX(0px)
            translateY(-50px)
            rotate(0deg);

        opacity:0;
    }

    10%{
        opacity:1;
    }

    25%{
        transform:
            translateX(40px)
            translateY(25vh)
            rotate(-90deg);
    }

    50%{
        transform:
            translateX(-30px)
            translateY(50vh)
            rotate(-180deg);
    }

    75%{
        transform:
            translateX(50px)
            translateY(75vh)
            rotate(-270deg);
    }

    100%{
        transform:
            translateX(-20px)
            translateY(110vh)
            rotate(-360deg);

        opacity:0;
    }
}