/* ============================================================
   استایل صفحات ورود / ثبت‌نام / بازیابی رمز عبور — طبق اسکرین‌شات مرجع (موبایل)
   صفحه‌ی مستقل بدون هدر/فوتر: لینک «بازگشت» + کادر سفید گرد با آیکون، عنوان و فیلدهای ساده.
   ============================================================ */

body.sm-auth-page { background: #f8f9fa; padding-top: 0 !important; }
html.dark-mode body.sm-auth-page { background: var(--bg-primary); }
body.sm-auth-page .site-header,
body.sm-auth-page .site-footer,
body.sm-auth-page .scroll-top-btn,
body.sm-auth-page .sm-ai,
body.sm-auth-page .sarab-donate-banner { display: none !important; }

.sm-auth-main { margin: 0 auto; padding: 0; }
.sm-auth-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    max-width: 520px;
    margin: 0 auto;
    padding: 36px 16px 40px;
    box-sizing: border-box;
}

.sm-auth-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 8px 22px;
    font-size: 17px;
    color: var(--text);
}
.sm-auth-back-arrow { direction: ltr; unicode-bidi: isolate; font-size: 20px; line-height: 1; }
.sm-auth-back:hover { color: var(--accent); }

.sm-auth-card {
    width: 100%;
    background: var(--card);
    border: none;
    border-radius: 20px;
    padding: 36px 20px 22px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

.sm-auth-icon { display: flex; justify-content: center; margin-bottom: 18px; color: var(--text); }
.sm-auth-icon .sm-icon { width: 40px; height: 40px; stroke-width: 1.9; }

.sm-auth-title {
    font-size: 22px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 34px;
    color: var(--text);
}
.sm-auth-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin: -20px 0 22px;
}

.sm-auth-alert {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}
.sm-auth-alert-error { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .35); color: var(--red); }
.sm-auth-alert-success { background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .35); color: var(--green); }

.sm-auth-form { display: flex; flex-direction: column; gap: 11px; }
.sm-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.sm-auth-field { min-width: 0; }

.sm-auth-form input[type=text],
.sm-auth-form input[type=email],
.sm-auth-form input[type=password] {
    width: 100%;
    height: 45px;
    background: transparent;
    border: 1px solid #d5d9e0;
    border-radius: 6px;
    padding: 0 16px;
    color: var(--text);
    outline: none;
    box-sizing: border-box;
    font-family: var(--font-family);
    font-size: 16px;
    text-align: right;
}
.sm-auth-form input::placeholder { color: #6b7280; opacity: 1; }
.sm-auth-form input:focus { border-color: var(--accent); }
html.dark-mode .sm-auth-form input[type=text],
html.dark-mode .sm-auth-form input[type=email],
html.dark-mode .sm-auth-form input[type=password] { border-color: var(--border); background: var(--card-2); }

.sm-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.sm-auth-checkbox {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    cursor: pointer;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: var(--muted) !important;
}
.sm-auth-checkbox input {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid #c4c9d2;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.sm-auth-checkbox input:checked { background: #336cf5; border-color: #336cf5; }
.sm-auth-checkbox input:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sm-auth-submit {
    width: 100%;
    height: 43px;
    margin-top: 14px;
    border: none;
    border-radius: 6px;
    background: #336cf5;
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 19px;
    font-weight: 400;
    cursor: pointer;
    transition: filter .2s ease;
}
.sm-auth-submit:hover { filter: brightness(1.08); }
.sm-auth-submit--sm { width: auto; height: 35px; margin-top: 0; padding: 0 24px; font-size: 17px; }

.sm-auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    font-size: 16px;
    color: var(--muted);
}
.sm-auth-links-text { color: var(--muted); }
.sm-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 6px;
    background: #efefef;
    color: #4b5563;
    font-size: 16px;
    transition: filter .2s ease;
}
.sm-auth-btn:hover { filter: brightness(0.96); color: #4b5563; }
html.dark-mode .sm-auth-btn { background: var(--card-2); color: var(--muted); }
.sm-auth-links a:not(.sm-auth-btn) { color: var(--accent); font-weight: 700; }
.sm-auth-submit--sm{font-size:15px}
.sm-auth-back-arrow{font-size:18px}
