@import url(/css/_fonts.css);
@import url(/css/_variables.css);
@import url(/cpanel/css/_forms.css);
@import url(/css/_text-colors.css);
@import url(/css/_border-colors.css);
@import url(/css/_background-colors.css);

body {
    font-family: fadigits, Vazirmatn;
    direction: rtl;
    background: var(--tw-gray-100);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: fadigits, Vazirmatn;
}

a:hover {
    text-decoration: none !important;
}

h2 {
    font-size: 20px;
}

.logo {
    display: block;
    margin: auto;
    max-width: 256px;
    max-height: 128px;
    margin-bottom: 2rem;
}

.modal-body p {
    color: initial
}

/* captcha */
.dntcaptcha {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
}

    .dntcaptcha img {
        border-radius: 0.25rem;
        border: 1px solid lightgray;
        width: 100%;
        grid-column: span 2;
        height: 64px;
        min-height: 64px;
        max-height: 64px;
    }

    .dntcaptcha a.fa-solid {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        grid-column: span 1;
        text-decoration: none;
        cursor: pointer;
    }

    .dntcaptcha div.form-group {
        grid-column: span 5 !important;
        height: 64px !important;
    }

        .dntcaptcha div.form-group input {
            direction: rtl;
        }

div.dntcaptcha span.text-danger {
    grid-column: span 5;
}

/* login card */

div.login-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {

    div.login-cards-container {
        grid-template-columns: 1fr 1fr;
    }

    a.login-card img {
        max-width: 50% !important;
    }
}

a.login-card {
    text-decoration: none;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 4px solid var(--tw-slate-300);
    display: flex;
    flex-direction: column;
    background: var(--tw-slate-200);
}

    a.login-card:hover {
        filter: brightness(1.075);
    }

    a.login-card div {
        padding: 1rem;
        width: 100%;
        flex: 0 0 50%;
    }

    a.login-card h5 {
        font-weight: bold;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    a.login-card p {
        color: var(--tw-gray-400);
    }

    a.login-card img {
        object-fit: cover;
        width: 100%;
        flex: 0 0 50%;
    }

div#login-layout-map iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

/* footer */

div#footer-social-media {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

    div#footer-social-media > a > img {
        width: 36px;
        max-width: 36px;
    }

/* utility classes */

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

a.footer-phone-link {
    text-decoration: none !important;
    letter-spacing: 1px;
    color: inherit !important;
    unicode-bidi: plaintext;
}

.cursor-pointer {
    cursor: pointer
}

/* login box */

article > div.login-box {
    background: var(--tw-gray-50);
    padding: 1rem;
    margin: 1rem;
    border-radius: 0.25rem;
    max-width: 420px;
    width: 420px;
    border-width: 4px;
    border-style: solid;
    border-color: var(--tw-slate-300);
}

div#login-box-buttons {
    display: flex;
    gap: 1rem;
}

    div#login-box-buttons > * {
        flex: 50%;
        color: white;
    }