﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
}

@font-face {
    font-family: "vazir";
    src: url("/lib/content/fonts/Vazir-FD.ttf");
}

@font-face {
    font-family: "yekan";
    src: url("/lib/content/fonts/IRANYekanRegular.woff");
}

:root {
    --brand: #402E32; /* زغالی */
    --gold: #D4AF37; /* طلایی */
    --ink: #2b2224;
    --bg: #FFFFFF;
    --muted: #6d5b60;
    --ring: rgba(212,175,55,0.35);
    --shadow: 0 10px 30px rgba(64,46,50,0.12);
    --radius: 5px;
}

html, body {
    direction: rtl;
    font-family: yekan;
    font-size: 12px;
    color: var(--brand);
    overflow: auto;
    scrollbar-width: none;
}

    body::-webkit-scrollbar {
        display: none;
    }


a, i {
    text-decoration: none;
    color: #808080;
}


input, button {
    font: inherit;
    padding: 0.5rem;
    border: 1px solid #808080;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
    color: var(--brand);
    width: 100%
}

input {
    text-align: center;
    font-size: 15px;
}

    button:hover, button:focus, button:active, button:focus-visible
    input:hover, input:focus, input:active, input:focus-visible {
        outline: none;
        box-shadow: none;
    }

.btn-primary {
    background-color: #D4AF37;
    color: #402E32;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bolder;
    text-decoration: none;
}

    .btn-primary:hover {
        background-color: #C89E2B;
    }

main {
    width: 30vw;
    display: flex;
    margin: 5rem auto;
    justify-content: flex-start;
    flex-direction: column;
    border-radius: 5px;
    border: 1px solid #f0f0f0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

    main > div {
        text-align: center;
        padding: 1rem;
    }

        main > div:first-child {
            text-align: center;
            padding: 1rem;
            font-size: 20px;
            font-weight: bolder;
        }

div.form {
    padding: 1rem;
    width: 80%;
    margin: 0 auto;
}

    div.form > div {
        text-align: right;
    }

        div.form > div:first-child {
            margin: 0.5rem 0 0.5rem 0;
            font-size: 16px;
            font-weight: bolder;
        }

    div.form > form > div {
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        padding: 0.5rem 0;
    }

        div.form > form > div:nth-child(2) {
            margin: 1rem 0 0 0;
            text-align: center;
        }


@media (max-width: 767px) {
    main {
        width: 90vw;
        margin: 1rem auto;
    }

    div.form {
        padding: 1rem;
        width: 100%;
        margin: 0 auto;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    main {
        width: 50vw;
        margin: 2rem auto;
    }

    div.form {
        padding: 1rem;
        width: 100%;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    main {
        width: 30vw;
        margin: 5rem auto;
    }

    div.form {
        padding: 1rem;
        width: 100%;
        margin: 0 auto;
    }
}



