* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: .3s cubic-bezier(.175, .885, .32, 1.275);
}

body {
    background-color: rgb(5, 1, 22);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    font-family: 'BonEB', sans-serif;
    color: #Fff;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .8)),
        url(../Media/Background.jpeg) center/cover no-repeat;
    background-size: 110%;
    overflow: hidden;
    backdrop-filter: blur(7px);
}

h1 {
    font-family: 'BonEB';
}

.lgn-box {
    background-color: rgba(0, 0, 0, 0.3);
    background: #00000076;
    backdrop-filter: blur(8px);
    width: 90%;
    max-width: 400px;
    height: auto;
    min-height: 350px;
    border: 1px solid #323232;
    border-radius: 15px;
    box-shadow: 0 0 90px #ffffff38;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    /* Mobile gap */
}

#login_password,
#login_username,
#reg_password,
#reg_username,
#reg_email {
    width: 100%;
    padding: 12px 15px;
    outline: none;
    border: 1px solid #cccccc38;
    border-radius: 10px;
    background-color: rgb(22, 21, 28);
    color: #fff;
    font-size: 1rem;
}

#sub-bt {
    margin-top: 5%;
    border-radius: 10px;
    height: 45px;
    text-align: center;
    background-color: #cc9900;
    box-shadow: 0 0 20px #f4c3308d;
    cursor: pointer;
    font-family: 'Bon', sans-serif;
    font-size: 12pt;
    border: none;
}

#login_password:focus,
#login_username:focus,
#reg_password:focus,
#reg_username:focus,
#reg_email:focus {
    border: 1px solid#F4C430;
}

#sub-bt:hover {
    box-shadow: 0 0 40px #f4c3308d;
}

label {
    font-family: 'Bon', sans-serif;
    font-size: 1.4rem;
}

p,
a {
    font-family: 'Bon', sans-serif;
    font-size: 0.9rem;
    color: #c1c1c1;
    text-decoration: none;
    margin-top: 1rem;
}

a:hover {
    color: #ffffff;
}

h1 {
    text-shadow: 0 0 20px #fff;
    font-weight: 700;
    font-family: 'Bon';
    margin: 1.5rem;
}

@media (max-width: 600px) {
    body {
        background-size: cover;
    }

    .lgn-box {
        width: 80%;
        height: auto;
        border-radius: 5%;
    }

    form {
        gap: 5px;
    }

    input,
    #sub-bt {
        font-size: 1.15rem;
    }

    label {
        font-size: 1.2rem;
        margin-bottom: 1px;
    }

    #sub-bt {
        margin-top: 5%;
    }
}


#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #ff6c6c;
    color: #ffffff;
    font-size: 1rem;
    text-shadow: 0 0 20px #ffffff;
    font-family: 'BonB';
    text-align: center;
    border-radius: 5px;
    padding: 10px;
    position: fixed;
    z-index: 9999;
    right: 30px;
    top: 30px;
    opacity: 0;
    animation: fadeInRight 0.5s forwards cubic-bezier(.175, .885, .32, 1.275);

}

#toast.show {
    visibility: visible;
    opacity: 1;
    top: 50px;
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}