/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

:root {
    --dark: #010101;
    --txt-color: #fff;
    --main-color: #fab83f;
    --shadow-color: #000000b0;
    --drop-shadow: drop-shadow(1px 1px 2px rgba(255, 255, 255, 0.717))
}

* {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    text-decoration: none;
    box-sizing: border-box;
}

body {
    background: #252525a8;
    font-family: "Poppins", sans-serif;
}

.bg-image {
    min-height: 100vh;
    background-image: url('../assets/background.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Navbar */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.50rem 7%;
    background-color: var(--shadow-color);
    border-bottom: 1px solid var(--main-color);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
}

.navbar .navbar-logo img {
    width: 50px;
    height: 50px;
    filter: var(--drop-shadow);
    transition: all 0.3s ease;
}

.navbar a {
    display: inline-block;
    color: var(--txt-color);
    font-weight: 500;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.navbar .navbar-nav a::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: var(--main-color);
    margin: auto;
    display: block;
}

.navbar .navbar-nav a:hover::after {
    width: 100%;
    transition: width 0.3s linear;
}

.navbar .navbar-nav a:hover {
    color: var(--main-color);
}

.navbar .login {
    padding: 6px 24px;
    justify-content: space-between;
    left: 30px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
}

.navbar .login:active {
    transform: scale(0.98);
    color: var(--dark);
    background-color: var(--main-color);
}

.navbar .user i {
    display: none;
    border: no;
    justify-content: center;
    align-items: center;
}

/* Home */
.home {
    position: relative;
    height: 100vh;
    width: 100%;
}

.home::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease-out;
}

.home.show::before {
    opacity: 1;
    pointer-events: auto;
}

/* From */
.form_container {
    position: fixed;
    max-width: 320px;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 101;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease-out;
}

.home.show .form_container {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.signup_form {
    display: none;
}

.form_container.active .signup_form {
    display: block;
}

.form_container.active .login_form {
    display: none;
}

.form_close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #0b0217;
    font-size: 22px;
    opacity: 0.7;
    cursor: pointer;
}

.form_container h2 {
    font-size: 22px;
    color: #0b0217;
    text-align: center;
}

.input_box {
    position: relative;
    margin-top: 30px;
    width: 100%;
    height: 40px;
}

.input_box input {
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    padding: 0 30px;
    color: #333;
    transition: all 0.2s ease;
    border-bottom: 1.5px solid #aaaaaa;
}

.input_box input:focus {
    border-color: #7d2ae8;
}

.input_box i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #707070;
}

.input_box i.email,
.input_box i.password {
    left: 0;
}

.input_box input:focus~i.email,
.input_box input:focus~i.password {
    color: #7d2ae8;
}

.input_box i.pw_hide {
    right: 0;
    font-size: 18px;
    cursor: pointer;
}

.option_field {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form_container a {
    color: #7d2ae8;
    font-size: 12px;
}

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

.checkbox {
    display: flex;
    column-gap: 8px;
    white-space: nowrap;
}

.checkbox input {
    accent-color: #7d2ae8;
}

.checkbox label {
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    color: #0b0217;
}

.form_container .button {
    background: #7d2ae8;
    margin-top: 30px;
    width: 100%;
    padding: 10px 0;
    border-radius: 10px;
}

.login_signup {
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
}

@media (max-width: 992px) {
    .navbar .navbar-logo img {
        width: 40px;
        height: 40px;
        filter: var(--drop-shadow);
        transition: all 0.3s ease;
    }

    .navbar .navbar-nav a {
        font-size: 0.90rem;
        display: inline-block;
        transition: all 0.3s ease;
    }

    .navbar .user .login {
        padding: 3px 15px;
    }

    .navbar .user i {
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 675px) {
    #hamburger-menu {
        display: inline-block;
        align-items: center;
        font-size: 1.5rem;
        color: var(--txt-color);
    }

    .navbar .navbar-nav {
        display: inline-block;
        background-color: var(--shadow-color);
        position: absolute;
        overflow: hidden;
        height: 100vh;
        width: 0;
        top: 65px;
        right: 0;
        left: 0;
        transition: width 0.3s;
    }

    .navbar .navbar-nav.active {
        width: 40%;
    }

    .navbar .navbar-nav a {
        font-size: 1rem;
        font-weight: 500;
        right: 0;
        left: 0;
        padding: 2rem 10%;
        transition: all 0.3s ease;
    }

    .navbar .user .login {
        padding: 2px 10px;
        justify-content: space-between;
        align-items: center;
    }

}

@media (max-width: 465px) {
    .navbar .user .login {
        padding: 2px 5px;
    }

    .navbar .navbar-nav.active {
        width: 50%;
    }
}