/* fonts */
@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Thin.woff2);
    font-weight: 100;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Light.woff2);
    font-weight: 200;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Regular.woff2);
    font-weight: 300;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Medium.woff2);
    font-weight: 400;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Bold.woff2);
    font-weight: 500;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-ExtraBold.woff2);
    font-weight: 600;
}

/* general styles */
* {
    font-family: iransans;
    box-sizing: border-box;
}

body,
html {
    padding: 0;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin: 0;
    color: #363131;
}

h1 {
    font-size: 34px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
}

ul,
ol {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.container {
    width: 1350px;
    margin: auto;
}

.theme-color {
    color: #DE474D;
}

.white-color {
    color: #ffffff;
}

/* loading */
.loading-state {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .5s;
}

.loading {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid #ddd;
    border-top-color: #DE474D;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    to {
        transform: rotate(360deg);
    }
}

/* header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: white;
}

.mobile-header {
    display: none;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-logo {
    width: 60px;
}

.main-menu ul {
    display: flex;
    gap: 2rem;
}

.main-menu ul li a {
    font-weight: 500;
    color: black;
    transition: .3s;
}

.main-menu ul li a:hover {
    color: gray !important;
}

.sign-container a {
    background-color: #DE474D;
    border: 1px solid white;
    color: white;
    border-radius: .8rem;
    padding: .6rem 1.5rem;
    font-size: 14px;
    transition: .3s;
}

.sign-container a:hover {
    background-color: white !important;
    border: 1px solid #DE474D !important;
    color: #DE474D !important;
}

/* main */
main {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100dvh;
    background-image: url(../images/bg.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    padding-top: 12rem;
}

.content-container {
    width: 750px;
    margin: 0 auto 0 auto;
    background-image: url(../images/fade-bg.png);
    background-size: 100% 100%;
    padding: 1rem;
}

.content-inner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: url(../images/fade-inner-bg.png);
    background-size: 100% 100%;
}

.left-side-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.left-side-login img {
    width: 350px;
}

.right-side-login {
    text-align: center;
    margin: 0 auto;
}

.right-side-login .logo {
    width: 100px;
    margin-bottom: 1rem;
}

.logo-container {
    text-align: center;
}

.form-group label {
    display: block;
    text-align: left;
    direction: ltr;
    color: #676767;
    font-size: 12px;
}

.form-group input {
    border: 1px solid #b3b3b3;
    background-color: rgba(255, 255, 255, .3);
    border-radius: .8rem;
    padding: .4rem;
    text-align: left;
    direction: ltr;
    width: 200px;
    transition: .3s;
    outline: none !important;
}

.form-group input[type=password] {
    padding: .4rem 2.4rem .4rem .4rem;
}

.form-group input:hover {
    background-color: rgba(255, 255, 255, 1);
}

.form-group input[type=submit] {
    background-color: #DE474D;
    border: solid 1px #DE474D;
    color: white;
    width: 100%;
    text-align: center;
    box-shadow: 0px 4px 3px 0px #9b9b9b;
    cursor: pointer;
    transition: .3s;
}

.form-group input[type=submit]:hover {
    background-color: #ffffff;
    color: #DE474D;
}

.input-group {
    position: relative;
    margin-top: 1rem;
}

.input-group button {
    position: absolute;
    right: 5px;
    bottom: 0;
    display: inherit;
    border: none;
    outline: none;
    background: none;
}

.input-group button svg {
    width: 20px;
    color: #676767;
}

.switch-sign {
    position: relative;
    background-color: rgba(255, 255, 255, .3);
    box-shadow: inset 0px 2px 3px 0px #9b9b9b;
    border-radius: 1rem;
    padding: .3rem;
    overflow: hidden;
    height: 35px;
}

.switch-sign a {
    position: absolute;
    bottom: 0;
    top: 0;
    right: 0;
    left: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #DE474D;
    height: 100%;
    width: 50%;
    border-radius: 1rem;
    font-weight: 300;
}

.switch-sign a:nth-child(2) {
    left: 0;
    right: auto;
}

.switch-sign a.active {
    background-color: #DE474D;
    color: #ffffff;
    height: 100%;
    width: 50%;
    border-radius: 1rem;
}

.socialmedia {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6rem;
}

/* responsive */
@media only screen and (max-width: 1450px) {
    .container {
        width: 1280px;
    }
}

@media only screen and (max-width: 1330px) {
    .container {
        width: 1080px;
    }
}

@media only screen and (max-width: 1200px) {
    .desktop-header {
        display: none !important;
    }

    .mobile-header {
        display: block;
    }

    .left-side-login {
        display: none;
    }

    .content-container {
        width: 450px;
    }

    .content-inner-container {
        padding: 1.5rem;
        width: auto;
    }

    /* header */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: white;
        display: flex !important;
        justify-content: space-between;
        z-index: 999;
    }

    header a {
        display: flex;
        align-items: center;
    }

    .header-logo,
    .menu-header img {
        width: 63px;
    }

    .header-logo-container img {
        margin-top: .5rem;
    }

    .dropdown-submenu-container {
        max-height: 24px;
        transition: max-height 1s cubic-bezier(0, 1, 0, 1);
        overflow: hidden;
    }

    .dropdown-submenu {
        display: block;
    }

    .dropdown-submenu-container.open {
        max-height: 1500px;
        transition: max-height 1s ease-in-out;
    }

    .dropdown {
        margin: 1.5rem 0 .5rem 0 !important;
    }

    .dropdown li {
        margin: .5rem 0 !important;
    }

    .dropdown-content {
        display: flex;
        justify-content: space-between;
    }

    .menu ul li {
        margin: 1.2rem 0;
    }

    .menu ul li a {
        color: #808184;
        font-size: 14px;
    }

    .profile-button-container {
        padding: .5rem .5rem 0 .5rem;
    }

    .menu-container {
        position: relative;
    }

    .menu-container nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        padding: 0 1rem;
        border-radius: 20px 0 0 20px;
        box-shadow: 0px 0px 5px 1px #c0c0c0;
        width: 0;
        opacity: 0;
        visibility: hidden;
        transition: 1s;
        overflow: auto;
    }

    .header-nav {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
    }

    .menu-item-text {
        display: flex;
        align-items: center;
        gap: .5rem;
    }

    .contact-number {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        color: #3F3F3F;
        padding: 1.5rem 0;
        border-top: 1px solid #CBCBCB;
    }

    .contact-number a {
        color: #3F3F3F;
    }

    .menu-header {
        position: relative;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid #CBCBCB;
    }

    .lang-switch {
        position: absolute;
        left: 10px;
        top: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: black;
        background-color: #F4F1F1;
        border-radius: .5rem;
        width: 44px;
        height: 44px;
        font-weight: 500;
    }

    .close-menu {
        position: absolute;
        right: 10px;
        top: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: black;
        background-color: #F4F1F1;
        border-radius: .5rem;
        width: 44px;
        height: 44px;
        font-weight: 500;
    }

    .close-menu svg {
        width: 25px;
        height: 25px;
    }
}

@media only screen and (max-width: 575px) {
    main {
        background-size: auto 100%;   
    } 
}

@media only screen and (max-width: 530px) {
    main {
        padding: 12rem 1.5rem 0 1.5rem;
    }

    .content-container {
        width: auto;
    }
}

@media only screen and (max-width: 330px) {
    .form-group input {
        width: 100%;
    }
}

@media only screen and (max-height: 800px) {
    main {
        padding-top: 6rem;    
    }
}