/* ------------------------------------------------ */
/* ✅ VAZIRMATN LOCAL FONTS */
/* ------------------------------------------------ */

@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Medium.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}


/* ------------------------------------------------ */
/* PAGE & CONTAINER */
/* ------------------------------------------------ */

body {
    background-image: url("images/background.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;

    margin: 0;
    padding: 0;
    font-family: "Vazirmatn", sans-serif;
    direction: rtl;
}

.container {
    max-width: 420px;
    margin: 70px auto;
    padding: 0 20px;
}

/* ------------------------------------------------ */
/* CARD */
/* ------------------------------------------------ */

.form-card {
    background: #fff;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 0 18px rgba(0,0,0,0.08);
}

/* ------------------------------------------------ */
/* TITLE */
/* ------------------------------------------------ */

.title {
    font-family: "Vazirmatn", sans-serif;
    font-weight: 700;
    text-align: center;
    font-size: 22px;
    margin-bottom: 26px;
}

/* ------------------------------------------------ */
/* INPUTS */
/* ------------------------------------------------ */

.form-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: "Vazirmatn", sans-serif;
    font-weight: 700; /* FIELD TITLES ARE BOLD */
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input {
    font-family: "Vazirmatn", sans-serif;
    font-weight: 400;
    padding: 11px 12px;
    border-radius: 7px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.form-group input::placeholder {
    font-family: "Vazirmatn", sans-serif;
    font-weight: 400;
    color: #9f9f9f;
}

.form-group input:focus {
    outline: none;
    border-color: #7a32da;
}

/* ------------------------------------------------ */
/* ERRORS */
/* ------------------------------------------------ */

.error {
    font-family: "Vazirmatn", sans-serif;
    font-size: 12px;
    margin-top: 4px;
    color: #e40000;
}

/* ------------------------------------------------ */
/* REMEMBER ME */
/* ------------------------------------------------ */

.checkbox-group {
    margin: 10px 0 18px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group label {
    font-family: "Vazirmatn", sans-serif;
    font-weight: 500;
    font-size: 14px;
}

/* ------------------------------------------------ */
/* LINKS */
/* ------------------------------------------------ */

.links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.links a {
    font-family: "Vazirmatn", sans-serif;
    font-weight: 500;
    text-decoration: none;
    color: #7a32da;
    font-size: 14px;
}

/* ------------------------------------------------ */
/* BUTTON */
/* ------------------------------------------------ */

button {
    width: 100%;
    padding: 12px;
    border-radius: 7px;
    border: none;
    background: #7a32da;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-family: "Vazirmatn", sans-serif;
    font-weight: 500;
    margin-top: 20px;
    transition: background 0.2s ease;
}

button:hover:not(:disabled) {
    background: #6a28c1;
}

button:disabled {
    background: #d2bdf6;
    cursor: not-allowed;
}
