/* Admin dashboard sign-in page - minimal: one centred card on a soft background. */
:root {
    --lg-primary: #2563eb;
    --lg-indigo: #4f46e5;
    --lg-ink: #0f172a;
    --lg-text: #334155;
    --lg-muted: #64748b;
    --lg-line: #e2e8f0;
    --lg-field: #f8fafc;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.lg-body {
    font-family: 'vazir', Tahoma, sans-serif; direction: rtl; color: var(--lg-text); -webkit-font-smoothing: antialiased;
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
    background: radial-gradient(900px 500px at 85% -10%, rgba(37, 99, 235, .13), transparent 60%), radial-gradient(800px 500px at 0% 110%, rgba(79, 70, 229, .10), transparent 60%), #f4f6fb;
}
a { text-decoration: none; color: var(--lg-primary); }

.lg-card { width: 100%; max-width: 380px; background: #fff; border-radius: 20px; padding: 34px 30px 26px; box-shadow: 0 20px 50px rgba(15, 23, 42, .09), 0 2px 6px rgba(15, 23, 42, .04); }

.lg-brand { text-align: center; margin-bottom: 26px; }
.lg-logo { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(37, 99, 235, .10), rgba(79, 70, 229, .10)); }
.lg-logo img { width: 36px; height: 36px; object-fit: contain; }
.lg-title { font-size: 19px; font-weight: 800; color: var(--lg-ink); margin: 0 0 4px; }
.lg-sub { font-size: 13px; color: var(--lg-muted); margin: 0; }

.lg-alert { display: none; align-items: flex-start; gap: 8px; padding: 10px 13px; border-radius: 11px; font-size: 13px; line-height: 1.8; margin-bottom: 16px; background: rgba(239, 68, 68, .07); color: #b91c1c; border: 1px solid rgba(239, 68, 68, .22); }
.lg-alert.show { display: flex; }
.lg-alert i { font-size: 17px; margin-top: 2px; }

.lg-field { margin-bottom: 14px; }
.lg-input { display: flex; align-items: center; background: var(--lg-field); border: 1.5px solid var(--lg-line); border-radius: 12px; transition: border-color .15s, box-shadow .15s, background .15s; }
.lg-input:focus-within { border-color: var(--lg-primary); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .11); }
.lg-input > i.lg-ico { padding: 0 13px; font-size: 19px; color: #94a3b8; flex-shrink: 0; }
.lg-input:focus-within > i.lg-ico { color: var(--lg-primary); }
.lg-input input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 14px; color: var(--lg-ink); padding: 0 0 0 13px; direction: ltr; text-align: right; }
.lg-input input::placeholder { color: #94a3b8; direction: rtl; }
.lg-eye { border: 0; background: transparent; color: #94a3b8; font-size: 19px; padding: 0 13px; height: 46px; cursor: pointer; flex-shrink: 0; }
.lg-eye:hover { color: var(--lg-primary); }

/* captcha rendered by DNTCaptcha: img, hidden fields, text box (image is clickable to refresh) */
.lg-captcha .maktab_Captcha { display: flex; flex-direction: row-reverse; align-items: stretch; gap: 10px; }
.lg-captcha #maktab_CaptchaImg { height: 46px; width: auto; max-width: 46%; border-radius: 10px; border: 1.5px solid var(--lg-line); cursor: pointer; margin: 0 !important; background: #fff; flex-shrink: 0; object-fit: contain; }
.lg-captcha .txt-input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1.5px solid var(--lg-line); border-radius: 12px; background: var(--lg-field); font-family: inherit; font-size: 15px; letter-spacing: 3px; text-align: center; color: var(--lg-ink); outline: 0; transition: border-color .15s, box-shadow .15s, background .15s; }
.lg-captcha .txt-input:focus { border-color: var(--lg-primary); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .11); }
.lg-captcha .txt-input::placeholder { letter-spacing: 0; color: #94a3b8; font-size: 13px; }
.lg-captcha .text-danger { display: none; }

.lg-submit { width: 100%; height: 48px; margin-top: 6px; border: 0; border-radius: 12px; font-family: inherit; font-size: 15px; font-weight: 800; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--lg-primary), var(--lg-indigo)); box-shadow: 0 8px 20px rgba(37, 99, 235, .25); display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s, box-shadow .15s, filter .15s; }
.lg-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(37, 99, 235, .3); filter: brightness(1.04); }
.lg-submit:disabled { opacity: .75; cursor: wait; transform: none; }
.lg-spin { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: lg-rot .7s linear infinite; display: none; }
.lg-submit.busy .lg-spin { display: block; }
@keyframes lg-rot { to { transform: rotate(360deg); } }

.lg-foot { margin-top: 22px; text-align: center; font-size: 11.5px; color: #94a3b8; }

@media (max-width: 420px) {
    body.lg-body { padding: 16px 12px; align-items: flex-start; }
    .lg-card { padding: 28px 20px 22px; margin-top: 8px; }
}

/* pack.js bundles a colour picker that injects its (unstyled) panel into <body>; it is not used here */
.clr-picker { display: none !important; }
