/* Font Awesome 4 (فقط آیکن‌های صفحه ورود) از فونت لوکال قالب اصلی سایت */
@font-face {
  font-family: 'FontAwesome';
  src: url('/GnusmasTemp/fonts/fontawesome-webfont.woff2') format('woff2'),
       url('/GnusmasTemp/fonts/fontawesome-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
.fa { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; }
.fa-fw { width: 1.28571429em; text-align: center; }
.fa-eye:before { content: "\f06e"; }
.fa-eye-slash:before { content: "\f070"; }

.auth-msg { color: #fff; border-radius: 20px; padding: 10px 20px; margin-bottom: 1rem; text-align: center; font-size: 14px; line-height: 1.9; }
.auth-error { background: rgba(220, 53, 69, .85); }
.auth-success { background: rgba(40, 167, 69, .85); }

/* ===== ریسپانسیو صفحات ورود ===== */
/* main.js ارتفاع body را ثابت می‌کند؛ در گوشی با باز شدن کیبورد فرم بریده می‌شد */
body.js-fullheight { height: auto !important; min-height: 100vh; min-height: 100dvh; background-size: cover; background-position: center; background-attachment: scroll; }
.ftco-section { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 2em 0; }
.signin-form .form-control { font-size: 16px; }

@media (max-width: 575.98px) {
    .ftco-section { padding: 1.5em 0; }
    .ftco-section .container { padding-left: 24px; padding-right: 24px; }
    .logo { height: 110px; }
    .copyright { font-size: 12px; margin-top: 1.5em; padding: 0 16px; }
    .signin-form .d-md-flex > .w-50 { width: 100% !important; text-align: center; margin-bottom: 8px; }
}

/* ===== فرم‌های فارسی ورود/ثبت‌نام (ثبت‌نام، ورود با کد، بازیابی با کد) ===== */
.auth-rtl { direction: rtl; text-align: right; font-family: Vazir, Tahoma, sans-serif; }
.auth-rtl .form-control { text-align: right; }
.auth-rtl .form-control.auth-ltr, .auth-rtl .form-control.auth-code { direction: ltr; text-align: left; }
.auth-rtl .form-control.auth-code { text-align: center; letter-spacing: 6px; font-size: 20px; }
.auth-rtl .field-icon { left: 15px; right: auto; }
.auth-info { background: rgba(255, 255, 255, .18); }
.auth-hint { color: #fff; text-align: center; font-size: 14px; line-height: 1.9; margin-bottom: 1rem; }
.auth-links { color: rgba(255, 255, 255, .85); font-size: 14px; }
.auth-links a, .auth-linkbtn { color: #fff !important; text-decoration: underline; }
.auth-linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.auth-sep { margin: 0 8px; opacity: .6; }
.auth-check { font-size: 13px; line-height: 1.8; padding-right: 30px; padding-left: 0; }
.auth-rtl .auth-check .checkmark { right: 0; left: auto; }
/* ردیف «مرا به خاطر بسپار» + «فراموشی رمز» */
.auth-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.auth-row .auth-check { margin-bottom: 0; }
.auth-plain { color: #fff !important; font-size: 14px; }
@media (max-width: 575.98px) { .auth-row { justify-content: center; text-align: center; } }

/* ===== فونت و کادر شیشه‌ای فرم‌های ورود/ثبت‌نام ===== */
@font-face {
  font-family: Vazir;
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('/gnusmastemp/fonts/fa/Vazir.woff2') format('woff2'), url('/gnusmastemp/fonts/fa/Vazir.woff') format('woff');
}
.copyright { font-family: Vazir, Tahoma, sans-serif; margin-top: 18px; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }

/* کادر شیشه‌ای دور فرم تا متن‌ها روی هر بخش عکس پس‌زمینه خوانا باشند */
.login-wrap.auth-rtl {
  background: rgba(18, 18, 26, .32);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  padding: 26px 26px 14px !important;
}
.login-wrap.auth-rtl .logo { height: auto; margin-bottom: 22px; display: flex; justify-content: center; }
.login-wrap.auth-rtl .logo img { width: 84px; height: auto; }

.auth-rtl .signin-form .form-control {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
}
.auth-rtl .signin-form .form-control::placeholder { color: rgba(255, 255, 255, .88); }
.auth-rtl .signin-form .form-control:focus { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .65); box-shadow: none; }
/* جای‌نگهدار فارسی راست‌چین؛ مقدار تایپ‌شده (ایمیل، شماره، کد) چپ‌چین */
.auth-rtl .form-control.auth-ltr:placeholder-shown,
.auth-rtl .form-control.auth-code:placeholder-shown { direction: rtl; text-align: right; letter-spacing: 0; font-size: 16px; }

.auth-rtl .btn.submit { text-align: center; font-weight: 600; letter-spacing: 0; }

.auth-rtl .auth-hint, .auth-rtl .auth-links, .auth-rtl .auth-plain, .auth-rtl .auth-check { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.auth-rtl .auth-links { margin-bottom: 10px; }

/* چک‌باکس: همان input واقعی، راست متن (چک‌مارک قالب در RTL دیده نمی‌شد) */
.auth-rtl .auth-check { display: inline-flex; align-items: center; gap: 8px; padding: 0; margin: 0; color: #fff; font-size: 13.5px; cursor: pointer; }
.auth-rtl .auth-check .checkmark { display: none; }
.auth-rtl .auth-check input[type="checkbox"] {
  order: -1; position: static; opacity: 1; width: 17px; height: 17px; margin: 0; flex: none;
  accent-color: #fbceb5; cursor: pointer;
}

@media (max-width: 575.98px) {
  .login-wrap.auth-rtl { padding: 22px 18px 10px !important; border-radius: 20px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .login-wrap.auth-rtl { background: rgba(18, 18, 26, .62); }
}

/* ===== دکمه‌های ورود با شبکه‌های اجتماعی (گوگل و گیت‌هاب) ===== */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.15rem 0;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}
.auth-divider span {
  padding: 0 10px;
}
.auth-social-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}
.btn-social {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 40px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all .2s ease-in-out;
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff !important;
  background: rgba(255, 255, 255, .1);
}
.btn-social:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .45);
  transform: translateY(-1px);
}
.btn-social.btn-google {
  background: #ffffff;
  color: #3c4043 !important;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.btn-social.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}
.btn-social.btn-github {
  background: #24292e;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.btn-social.btn-github:hover {
  background: #2f363d;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}
.btn-social svg {
  flex-shrink: 0;
}
