@import url(/css/_fonts.css);
@import url(/css/_variables.css);
@import url(/css/_text-colors.css);
@import url(/css/_border-colors.css);
@import url(/css/_background-colors.css);

:root {
    --acc-form-input-background-color: var(--tw-gray-200);
    --acc-form-input-border-color: var(--tw-gray-200);
    --acc-form-label-text-color: var(--tw-gray-500);
    --acc-form-input-text-color: var(--tw-gray-600);
}

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, a:visited, a:hover, a:active {
    color: inherit;
}

    a:hover {
        text-decoration: none !important;
    }

.logo {
    display: block;
    margin: auto;
    max-width: 256px;
    max-height: 128px;
    margin-bottom: 2rem;
}

/* 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 {
    display: grid;
    grid-template-columns: repeat(var(--acc-smart-columns), 1fr);
    gap: var(--acc-smart-spacing);

    a.login-card {
        text-decoration: none;
        border-radius: 0.5rem;
        overflow: hidden;
        border-width: 4px;
        border-style: solid;
        display: flex;
        flex-direction: column;
        background: var(--tw-slate-200);
    }

        a.login-card:hover {
            filter: brightness(1.075);
        }

        a.login-card:focus {
            outline: none;
            filter: brightness(1.075);
            border-color: color-mix(50% currentColor, 25% black) !important;
        }

        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%;
        }
}

/* footer */

footer#acc-footer {
    & > div#footer-main {
        padding: var(--acc-smart-spacing);
        gap: var(--acc-smart-spacing);
        display: grid;
        grid-template-columns: repeat(var(--acc-smart-columns), 1fr);

        > div#footer-identity {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        iframe {
            border: none;
            border-radius: 3rem;
            max-width: 100%;
            width: auto;
            aspect-ratio: 1;
        }

        ul#footer-socials {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1rem;
            align-items: center;
            justify-content: space-between;

            & > a > img {
                width: 36px;
                max-width: 36px;
            }
        }

        ul.footer-phones {
            padding: 0;
            list-style-position: inside;
            list-style-type: disclosure-closed;

            & > li > a {
                text-decoration: none !important;
                unicode-bidi: plaintext;
                font-family: fadigits;
            }
        }
    }

    #footer-copyright {
        background: black;
        padding: 1rem;
        text-align: center;

        p {
            margin-bottom: 0;

            a {
                color: cyan;
            }
        }
    }
}

/* login box */

article > div.login-box {
    background: var(--tw-gray-50);
    padding: 1rem;
    border-radius: 0.25rem;
    width: clamp(320px, 340px, 480px);
    border-style: solid;
    border-color: var(--tw-slate-300);
    margin: auto;
    div.buttons {
        display: flex;
        gap: 1rem;
        & > * {
            flex: 50%;
            color: white;
        }
        button {
            cursor:pointer;
        }
        button::before {
            display:none;
        }
        a {
            background: var(--tw-yellow-600);
            display:inline-flex;
            align-items:center;
            justify-content:center;
            border-radius: 0.25rem;
        }
    }
}


/* header */
header#login-layout-header {
    background-color: var(--tw-gray-200);
    height: 64px;
    display: flex;

    & > div {
        display: flex;
        align-items: center;

        h1 {
            font-size: 1.25rem;
            font-weight: bold;
            margin-bottom: 0;
        }

        nav {
            ul {
                display: flex;
                list-style-type: none;
                gap: 1rem;
                margin: 0;
                font-size: 14px;
            }
        }
    }
}

/* banner */
div.acc-banner {
    background: black;
    display: flex;
    color: white;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 3rem;

    & > ul {
        list-style-type: none;
        display: flex;
        gap: 1rem;
        margin: 0;
        padding: 0;

        & > li:not(:last-of-type)::after {
            content: ">";
            padding-inline-start: 1rem;
            color: red;
        }
    }
}
