/* =========================================================
   JAHESH LOGIN - SITE FONT
   ========================================================= */

.jahesh-login {
    font-family: var(--default-font);
    direction: rtl;
}

.jahesh-login *,
.jahesh-login input,
.jahesh-login button,
.jahesh-login label,
.jahesh-login h2 {
    font-family: inherit;
}

/* =========================================================
   JAHESH LOGIN - SITE FONTS
   ========================================================= */

.jahesh-login {
    font-family: var(--default-font);
    direction: rtl;
}

.jahesh-login h2 {
    font-family: var(--heading-font);
}


.jahesh-login *,
.jahesh-login input,
.jahesh-login button,
.jahesh-login label {
    font-family: inherit;
}
.jahesh-auth-nav{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    margin-bottom:30px;

    flex-wrap:wrap;

}

.jahesh-auth-nav a{

    text-decoration:none;

    padding:10px 20px;

    border-radius:10px;

    background:#f4f6f9;

    color:#333;

    font-size:14px;

    font-weight:600;

    transition:.3s;

}

.jahesh-auth-nav a:hover{

    background:#2563eb;

    color:#fff;

    transform:translateY(-2px);

}

/* Register Form */
.jahesh-form-group {
    margin-bottom: 20px;
}

.jahesh-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.jahesh-form-group input {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #333;
    transition: all .3s ease;
    box-sizing: border-box;
    direction: rtl;
}

.jahesh-form-group input::placeholder {
    color: #999;
}

.jahesh-form-group input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, .15);
}


/* Button */
.jahesh-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: #2271b1;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
}

.jahesh-btn:hover {
    background: #135e96;
}


/* Alerts */
.jahesh-alert {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
    direction: rtl;
}

.jahesh-alert.success {
    background: #e8f8ee;
    border: 1px solid #b7e4c7;
    color: #1b7a3d;
}

.jahesh-alert.error {
    background: #fff0f0;
    border: 1px solid #ffc7c7;
    color: #c62828;
}


/* Title */
h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    color: #222;
}


/* Form Container */
form {
    max-width: 420px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    direction: rtl;
}


/* Mobile */
@media (max-width: 480px) {

    form {
        padding: 20px;
        margin: 15px;
    }

    h2 {
        font-size: 21px;
    }

}

/* Auth navigation links */
.jahesh-auth-links,
.auth-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    direction: rtl;
    flex-wrap: wrap;
}

/* لینک‌های داخل بخش auth */
a[href*="auth"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 22px;

    background: #f5f5f5;
    color: #333;

    border: 1px solid #ddd;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: all .3s ease;
}


a[href*="auth"]:hover {
    background: #1e73be;
    color: #fff;
    border-color: #1e73be;
    transform: translateY(-2px);
}


a[href*="auth"]:active {
    transform: scale(.96);
}

/* ==========================
   Jahesh Auth Modern Style
========================== */



/* لینک های بالا */
a[href*="auth"] {
    padding: 11px 28px !important;
    border-radius: 14px !important;

    background: rgba(255,255,255,.8) !important;
    border: 1px solid #e5e7eb !important;

    color: #1f2937 !important;

    font-size: 14px;
    font-weight: 700;

    backdrop-filter: blur(10px);

    box-shadow: 
        0 8px 20px rgba(0,0,0,.05);

    transition: .35s ease;
}


a[href*="auth"]:hover {
    background: #2563eb !important;
    color:white !important;

    transform: translateY(-3px);

    box-shadow:
        0 12px 25px rgba(37,99,235,.25);
}



/* عنوان ثبت نام */
h1,
h2 {
    color:#111827 !important;

    font-weight:900 !important;

    letter-spacing:-1px;

    margin-bottom:35px !important;
}



/* کارت فرم */

form,
.auth-box,
.register-form {

    background:rgba(255,255,255,.85);

    backdrop-filter: blur(15px);

    border-radius:28px !important;

    padding:40px !important;

    box-shadow:
    0 20px 50px rgba(0,0,0,.08);

}



/* لیبل ها */

label {

    color:#111827;

    font-weight:800;

    font-size:15px;

}



/* input */

input {

    height:55px !important;

    border-radius:16px !important;

    border:2px solid #e5e7eb !important;

    background:#fff !important;

    padding:0 20px !important;

    font-size:15px !important;

    transition:.3s;

}


input:focus {

    border-color:#2563eb !important;

    box-shadow:
    0 0 0 5px rgba(37,99,235,.12) !important;

    outline:none;

}



/* دکمه */

button,
input[type="submit"] {

    height:55px !important;

    border-radius:16px !important;

    background:
    linear-gradient(135deg,#2563eb,#4f46e5) !important;

    border:none !important;

    color:white !important;

    font-size:16px !important;

    font-weight:900 !important;

    cursor:pointer;

    transition:.35s;

}


button:hover,
input[type="submit"]:hover {

    transform:translateY(-3px);

    box-shadow:
    0 15px 30px rgba(37,99,235,.35);

}



/* فاصله فیلدها */

form p {

    margin-bottom:22px !important;

}



/* موبایل */

@media(max-width:600px){

    form {

        margin:20px;

        padding:25px !important;

    }


    a[href*="auth"] {

        padding:10px 18px !important;

    }

}

/* انتقال دکمه های بالا به پایین صفحه */

a[href*="auth"] {
    position: relative;
    top: auto;
}


/* لینک های auth در پایین فرم */
body .auth-links,
body > a[href*="auth"] {
    margin-top: 30px;
}


/* چون wrapper ندارند، لینک ها را شناور پایین بیاور */
a[href*="auth"] {
    transform: translateY(0);
}


/* ظاهر پایین صفحه */
a[href*="auth"] {
    box-shadow:
        0 10px 25px rgba(0,0,0,.08);
}


/* فاصله بعد از فرم */
form + a[href*="auth"] {
    margin-top: 35px;
}


/* حالت شیشه ای */
a[href*="auth"] {
    background: rgba(255,255,255,.9) !important;
    backdrop-filter: blur(12px);
}


/* هاور حرفه ای */
a[href*="auth"]:hover {
    background: linear-gradient(135deg,#2563eb,#4f46e5) !important;
    color:white !important;
}

a[href*="auth"] {
    position: fixed;
    bottom: 35px;
    z-index: 99;
}


/* دکمه اول */
a[href*="auth"]:first-of-type {
    right: calc(50% + 10px);
}


/* دکمه دوم */
a[href*="auth"]:last-of-type {
    left: calc(50% + 10px);
}
.jahesh-auth-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    direction: rtl;
}

.jahesh-auth-footer a,
.jahesh-auth-footer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 45px;
    padding: 0 20px;
    border-radius: 12px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    transition: .3s;
}

.jahesh-auth-footer a:hover,
.jahesh-auth-footer button:hover {
    background: #3f51e8;
    color: #fff;
}



/* =========================================================
   JAHESH AUTH - FONT
   ========================================================= */

@font-face {
    font-family: "JaheshAuthFont";
    src: url("../fonts/vazir.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   JAHESH LOGIN
   ========================================================= */

.jahesh-login {
    --jahesh-auth-font: "JaheshAuthFont";

    font-family: var(--jahesh-auth-font);
    direction: rtl;
}


/* تمام عناصر لاگین */
.jahesh-login,
.jahesh-login *,
.jahesh-login input,
.jahesh-login button,
.jahesh-login label,
.jahesh-login textarea,
.jahesh-login select,
.jahesh-login option {
    font-family: var(--jahesh-auth-font);
}


/* عنوان */
.jahesh-login h1,
.jahesh-login h2,
.jahesh-login h3,
.jahesh-login h4,
.jahesh-login h5,
.jahesh-login h6 {
    font-family: var(--jahesh-auth-font);
}


/* Placeholder */
.jahesh-login input::placeholder,
.jahesh-login textarea::placeholder {
    font-family: var(--jahesh-auth-font);
}


/* دکمه */
.jahesh-login button {
    font-family: var(--jahesh-auth-font);
}

/* =========================================================
   JAHESH AUTH - FONTS
   ========================================================= */

@font-face {
    font-family: "JaheshVazir";
    src: url("../fonts/vazir.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JaheshIranSans";
    src: url("../fonts/iransans.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JaheshBKoodak";
    src: url("../fonts/bkoodak.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JaheshNas";
    src: url("../fonts/nas.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   FONT VARIABLES
   ========================================================= */

:root {
    --jahesh-auth-font: "JaheshVazir";
    --jahesh-auth-heading-font: "JaheshVazir";
}


/* =========================================================
   LOGIN
   ========================================================= */

.jahesh-login {
    font-family: var(--jahesh-auth-font);
    direction: rtl;
}

.jahesh-login *,
.jahesh-login input,
.jahesh-login button,
.jahesh-login label,
.jahesh-login textarea,
.jahesh-login select,
.jahesh-login option {
    font-family: var(--jahesh-auth-font);
}

.jahesh-login h1,
.jahesh-login h2,
.jahesh-login h3,
.jahesh-login h4,
.jahesh-login h5,
.jahesh-login h6 {
    font-family: var(--jahesh-auth-heading-font);
}

.jahesh-login input::placeholder {
    font-family: var(--jahesh-auth-font);
}

/* =========================================================
   JAHESH AUTH - FONT
   ========================================================= */

@font-face {
    font-family: "JaheshAuthFont";
    src: url("../fonts/vazir.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   FONT VARIABLE
   ========================================================= */

:root {
    --jahesh-auth-font: "JaheshAuthFont";
}


/* =========================================================
   APPLY FONT TO ALL JAHESH AUTH SECTIONS
   ========================================================= */

.jahesh-auth-nav,
.jahesh-auth-nav *,
.jahesh-form-group,
.jahesh-form-group *,
.jahesh-btn,
.jahesh-alert,
.jahesh-auth-links,
.jahesh-auth-links *,
.jahesh-auth-footer,
.jahesh-auth-footer *,
.jahesh-login,
.jahesh-login * {
    font-family: var(--jahesh-auth-font);
}


/* =========================================================
   FORM ELEMENTS
   ========================================================= */

.jahesh-auth-nav a,
.jahesh-form-group input,
.jahesh-form-group label,
.jahesh-btn,
.jahesh-auth-links a,
.jahesh-auth-footer a,
.jahesh-auth-footer button,
.jahesh-login input,
.jahesh-login button,
.jahesh-login label {
    font-family: var(--jahesh-auth-font);
}


/* =========================================================
   HEADINGS
   ========================================================= */

.jahesh-login h1,
.jahesh-login h2,
.jahesh-login h3,
.jahesh-login h4,
.jahesh-login h5,
.jahesh-login h6 {
    font-family: var(--jahesh-auth-font);
}


/* =========================================================
   PLACEHOLDERS
   ========================================================= */

.jahesh-form-group input::placeholder,
.jahesh-login input::placeholder,
.jahesh-login textarea::placeholder {
    font-family: var(--jahesh-auth-font);
}