@import "globals.css";

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

@media screen and (min-width: 1920px) {
    .container {
        max-width: 1700px;
    }
}

@media screen and (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }
}

@media screen and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

@media screen and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
}

@media screen and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
}

@media screen and (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 12px;
    }
}


.footer {
    padding-top: 80px;
    padding-bottom: 20px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer .container nav ul {
    display: flex;
    gap: 10px;
}


.footer .container nav ul li a {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-text-color);
}

.footer .container p {
    max-width: 480px;
    font-size: 12px;
    opacity: 0.5;
    font-weight: 500;
}

@media screen and (max-width: 800px) {
    .footer .container nav ul {
        display: flex;
        justify-content: center;
    }

    .footer .container p {
        text-align: center;
    }
}

.header {
    padding-top: 60px;
}

.header .container {
    display: flex;
    gap: 60px;
}

.header .login_form {
    display: flex;
    gap: 25px;
    align-items: end;
}

.header .login_form .main_button {
    max-width: 180px;
}

@media screen and (max-width: 800px) {
    .header .login_form .main_button {
        max-width: 100%;
    }
}

.main {
    margin-top: 90px;
}

.register .section_title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.register .section_title .title_icon {
    width: 55px;
    height: 55px;
    border-radius: 5px;
    border: 1px solid var(--quaternary-color);
    background-color: var(--tertiary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem;
}

.suggestions_list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #17787c;
    border-radius: 4px;
    margin-top: 10px;
    overflow-x: auto;
    list-style: none;
    padding: 0;
    z-index: 10;
}

.suggestion_item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion_item:hover {
    background-color: rgb(0, 0, 0, 0.25);
}


.register .section_title h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-text-color);
}

.register .main_form .form_container {
    display: flex;
    gap: 80px;
    align-items: center;
}

.register .main_form .form_container .form_fields {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.register_button {
    font-size: 14px;
    font-weight: 700;
    height: 45px;
    color: var(--primary-text-color);
    background-color: var(--green-color);
    border: 2px solid var(--green-color);
    padding: 0 25px;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.form_select {
    display: flex;
    align-items: center;
    gap: 50px;
}

.form_select label input {
    display: none;
}

.form_select label {
    cursor: pointer;
}

.form_select label input:checked+.select_item img {
    filter: drop-shadow(2px 0 0 white) drop-shadow(0 2px 0 white) drop-shadow(-2px 0 0 white) drop-shadow(0 -2px 0 white);
}

.form_select .toggle_button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #26692E;
    border: 2px solid #27B345;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}



@media screen and (max-width: 800px) {
    .header .container {
        flex-direction: column;
        align-items: center;
    }

    .header .login_form {
        max-width: 380px;
        width: 100%;
        flex-direction: column;
    }

    .main {
        margin-top: 60px;
    }


    .register .section_title {
        justify-content: center;
    }

    .register .main_form .form_container {
        flex-direction: column;
        gap: 30px;
    }
}

.maintenance {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.maintenance .maintenance_title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.maintenance .maintenance_title h2 {
    font-size: 42px;
    font-weight: 900;
}

.maintenance .maintenance_title h1 {
    font-size: 32px;
    font-weight: 700;
    max-width: 400px;
}

.maintenance p {
    font-size: 14px;
    font-weight: 400;
    max-width: 500px;
}

img.maintenance_image {
    width: 100%;
    max-width: 400px;
    position: absolute;
    bottom: 0;
    left: 0;
}

@media screen and (max-width: 800px) {
    .maintenance {
        align-items: center;
        text-align: center;
    }
}

@media screen and (max-height: 750px) {
    img.maintenance_image {
        max-width: 250px;
    }
}

@media screen and (max-width: 600px) {
    .maintenance .maintenance_title h2 {
        font-size: 36px;
    }

    .maintenance .maintenance_title h1 {
        font-size: 24px;
    }

    .maintenance p {
        font-size: 16px;
        max-width: 400px;
    }
}

.modal_overlay {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgb(0, 0, 0, 0.80);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal_overlay.active {
    display: flex;
}

.modal_overlay .modal {
    max-width: 1000px;
    width: 100%;
    min-height: 500px;
    padding: 60px 50px;
    background-color: var(--secondary-color);
    background-image: url(../images/modal-bg.png);
    background-size: cover;
    border-radius: 10px;
    -webkit-animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) forwards;
    animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) forwards;
}

@-webkit-keyframes scale-in-center {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scale-in-center {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

.staff_login .modal {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.staff_login .modal .close_button {
    position: absolute;
}

.staff_login .modal_content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-self: start;
}

.staff_login .login_staff_form {
    max-width: 380px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.staff_login h2 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 11px 20px;
    max-width: max-content;
    background-color: rgb(0, 0, 0, 0.2);
    border-radius: 5px;
}

@media screen and (max-width: 400px) {
    .modal_overlay .modal {
        padding: 50px 40px;
    }

    .staff_login h2 {
        flex-direction: column-reverse;
    }
}

.staff_login p {
    max-width: 400px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 1.4px;
}

.close_button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #C71313;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
}

@media screen and (max-width: 850px) {
    .staff_login .modal {
        flex-direction: column;
    }

    .staff_login .modal_content {
        align-self: center;
        align-items: center;
        text-align: center;
    }
}