@font-face {
    font-family: "Vazir-Thin";
    src: url("fonts/Farsi-Digits-Without-Latin/Vazir-Thin-FD-WOL.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: "Vazir-Light";
    src: url("fonts/Farsi-Digits-Without-Latin/Vazir-Light-FD-WOL.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Vazir";
    src: url("fonts/Farsi-Digits-Without-Latin/Vazir-FD-WOL.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Vazir-Medium";
    src: url("fonts/Farsi-Digits-Without-Latin/Vazir-Medium-FD-WOL.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Vazir-Bold";
    src: url("fonts/Farsi-Digits-Without-Latin/Vazir-Bold-FD-WOL.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

:root{
    --primary-color:#2f9153;
}

* {
    font-family: 'Vazir', serif;
    border: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

select:disabled{
    opacity: .5;
}

hr{
    border-bottom: 1px dashed #999;
    margin: 10px 0 20px 0;
}

body {
    direction: rtl;
    background: #f4f4f4;
}

.form-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    position: relative;
}
.overlay-loading{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    z-index: 999;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(5px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.loader {
    width: 50px;
    padding: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--primary-color);
    --_m:
        conic-gradient(#0000 10%,#000),
        linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: l3 1s infinite linear;
}
@keyframes l3 {to{transform: rotate(1turn)}}

.form-box{
    width: 500px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    position: relative;
    border-radius: 20px;
}
.logo-box{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.logo-box img{
    width: 200px;
    margin-bottom: 50px;
}
.des-box{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}
.des-box h1{
    font-size: 1.2em;
    margin-bottom: 5px;
    font-family: 'Vazir-Medium',serif;
    font-weight: normal;
    color: #333;
    text-align: center;
}
.des-box h2{
    font-size: 1.1em;
    font-family: 'Vazir-Light',serif;
    font-weight: normal;
    opacity: .5;
    text-align: center;
}
/* input styles */
.input-box {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.half-input-box{
    width: 100%;
    display: flex;
    gap: 15px;
}

.input-box label{
    color: #333;
}

.input-box input[type="text"],.input-box input[type="number"],.half-input-box input[type="text"],.half-input-box input[type="number"],select{
    background: #f4f4f4;
    height: 50px;
    width: 100%;
    padding: 0 20px;
    color: #333;
    border-radius: 10px;
    margin: 10px 0 20px 0;
    outline: none;
    font-size: 1.1em;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.input-box button,.input-box input[type="submit"]{
    background: var(--primary-color);
    height: 50px;
    padding: 0 20px;
    color: white;
    font-family: 'Vazir-Bold',serif;
    border-radius: 10px;
    width: fit-content;
    cursor: pointer;
    margin-top: 20px;
    outline: none;
    font-size: 1em;
}

a.normal-btn{
    text-decoration: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: white;
    padding: 20px;
    display: flex;
    border-radius: 10px;
}

.input-box button:disabled,.input-box input[type="submit"]:disabled{
    background: #808080;
    cursor: not-allowed;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading-logo {
    width: 200px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
