body {
    min-height: 100vh;
    max-width: 1920px;
    margin: auto;
    display: flex;
    flex-direction: column;
    background-color: #4589FF;
}

#signup_overlay {
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.288);
    z-index: 998;
}

#signup_msg {
    background-color: #4589FF;
    border-radius: 12px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: large;
    font-weight: bold;
    color: white;
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    padding: 20px;
    transition: opacity 0.5s ease-out, bottom 0.5s ease-out;
    z-index: 1000;
}

.show {
    bottom: 50% !important; 
    opacity: 1 !important; 
}

#signup_top {
    display: flex;
    justify-content: space-between;
    padding: 64px;
    padding-bottom: 0px;
    align-items: center;
}

button {
    background-color: #4589FF;
    color: #FFFFFF;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 20px;
}

button:hover {
    background-color: rgb(64, 80, 224);
    transform: translateY(-2%);
    cursor: pointer;
}

#main {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    flex-grow: 1;
}

#signup_border {
    border: 1px solid #757575a1;
    border-radius: 16px;
    box-shadow: 0px 0px 16px 2px rgba(151, 150, 150, 0.3);
    height: 20%;
    background-color: #FFFFFF;
    position: relative;
}

#signup_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 104px;
}

#back_to_login {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

#arrow_left {
    position: absolute;
    width: 32px;
    height: 32px;
    top: 8%;
    left: 8%;
    background-image: url("/assets/icons/arrow_left.png");
}

#arrow_left:hover {
    cursor: pointer;
    background-image: url("/assets/icons/arrow_left_hover.png");
}

#signup_form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.input_container {
    position: relative;
    display: inline-block;
}

.input_container input {
    padding-right: 30px;
    font-size: 24px;
    border-bottom: 2px solid #D3D3D3;
}

.input_icon_email {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    width: 18px;
}


.input_icon_password {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-70%);
    cursor: pointer;
    height: auto;
    width: 18px;
}


#signup_container h2 {
    text-decoration: underline 3px #4589FF;
    text-underline-offset: 16px;
    font-size: 40px;
    padding-bottom: 40px;
}

input {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 16px;
}

::placeholder {
    color: #D3D3D3;
    opacity: 1;
}

.checkbox_container {
    gap: 8px;
    display: flex;
    flex-direction: row;
}

.checkbox_container a {
    color: #4589FF;
}

input.error {
    border-bottom: 2px solid rgb(255 0 0); 
  }

#error_msg {
    color: rgb(255 0 0);
    position: absolute;
    bottom: -20px; 
    left: 0;
    font-size: 14px; 
    display: none;
}

#error_msg_password {
    color: rgb(255 0 0);
    position: absolute;
    bottom: -20px; 
    left: 0;
    font-size: 14px; 
    display: none;
}

#error_msg_email {
    color: rgb(255 0 0);
    position: absolute;
    bottom: -20px; 
    left: 0;
    font-size: 14px; 
    display: none;
}

#error_msg_name {
    color: rgb(255 0 0);
    position: absolute;
    bottom: -20px; 
    left: 0;
    font-size: 14px; 
    display: none;
}

#signup_buttons {
    display: flex;
    gap: 24px;
}

#guest_button {
    border: 1px solid grey;
    background-color: #FFFFFF;
    color: gray;
}

#guest_button:hover {
    color: #4589FF;
    transform: translateY(-2%);
    border: 1px solid #4589FF;
}

#bottom_bar {
    width: 100%;
    height: 40px;
    padding: 20px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    font-size: 16px;
}

.nav_link {
    text-decoration: none;
    color: #dddbdb;
}

.nav_link:hover {
    color: #1c57bd;
    cursor: pointer;
}

@media (max-width: 900px) {
    #signup_top {
        padding: 32px;
    }
}

@media (max-width: 540px) {
    #signup_container {
        padding: 16px 32px;
    }

    #bottom_bar {
        padding-bottom: 16px;
    }

    .input_container input {
        padding-right: 0;
        font-size: 18px;
    }

    .checkbox_container {
        font-size: 16px;
    }

    .join_logo {
        width: 64px;
        height: 78.03px;
    }

    #arrow_left {
        top: 5%;
    }

    #signup_msg {
        width: 240px;
    }

    #error_msg {
        bottom: -34px;
    }

    #error_msg_password {
        bottom: -34px;
    }

    #error_msg_email {
        bottom: -34px;
    }

    #error_msg_name {
        bottom: -34px;
    }
}

