/* (1.10.0) generated from auth.css by mkltr.js - do not edit */
/* ============================================================================
 * auth.css (1.9.17) - صفحات الدخول (الدخول، الاستعادة، التحقق بخطوتين)
 * ============================================================================
 * الهوية: كحلي دوكسا + ذهبي الختم (نفس أيقونة البرنامج) + أزرق النظام للأفعال.
 * لوحة الهوية بمشهد "مستند مؤرشف بيتوقّع ويتختم" - حركة واحدة عند الفتح.
 * ============================================================================ */
.auth-v2 {
    --au-navy: #1B2542; --au-navy-2: #141C34; --au-navy-3: #24315A;
    --au-gold: #C9A24B; --au-gold-soft: #E9D7A8;
    --au-blue: #3E63F2; --au-blue-ink: #2347D6;
    --au-paper: #FFFDF8; --au-bg: #F4F6FA;
    --au-ink: #142038; --au-ink-2: #46516B; --au-ink-3: #7A8399;
    --au-line: #DCE1EB; --au-line-2: #E9EDF3;
    margin: 0; min-height: 100vh; min-height: 100dvh; height: auto; overflow: auto;
    background: var(--au-bg); color: var(--au-ink); font-size: 14px;
}
html:has(body.auth-v2) { height: auto; overflow: auto; }
.auth-v2 *, .auth-v2 *::before, .auth-v2 *::after { box-sizing: border-box; }
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* ------------------------------------------------------------ لوحة الهوية */
.auth-brand {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 28px;
    padding: 40px clamp(32px, 4.4vw, 72px) 44px; color: #E8ECF7;
    background:
        radial-gradient(120% 70% at 85% 0%, rgba(201, 162, 75, .14), transparent 60%),
        radial-gradient(90% 60% at 0% 100%, rgba(62, 99, 242, .22), transparent 65%),
        linear-gradient(-160deg, var(--au-navy) 0%, var(--au-navy-2) 100%);
}
/* خطوط سطور خفيفة زي ورق الأرشيف */
.auth-brand::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 100% 34px;
    mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.auth-brand > * { position: relative; }
.auth-brand-top { display: flex; align-items: center; gap: 12px; }
.auth-mark { display: inline-grid; width: 44px; height: 44px; flex: 0 0 44px; }
.auth-mark svg { width: 100%; height: 100%; display: block; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.auth-brand-name { display: grid; line-height: 1.35; }
.auth-brand-name strong { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: .2px; }
.auth-brand-name small { font-size: 12.5px; color: #A9B3CF; }
.auth-brand-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 30px; max-width: 560px; width: 100%; margin-inline: auto; }
.auth-headline { margin: 0; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.5; font-weight: 800; color: #fff; max-width: 15em; text-wrap: balance; }

/* المشهد */
.auth-scene { position: relative; height: 300px; margin-inline: 8px; }
.sc-folder { position: absolute; width: 62%; height: 70%; border-radius: 14px; background: #2B3966; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6); }
.sc-folder::before { content: ""; position: absolute; top: -14px; inset-inline-end: 18px; width: 38%; height: 22px; border-radius: 10px 10px 0 0; background: inherit; }
.sc-folder span { position: absolute; z-index: 1; top: -11px; inset-inline-end: 30px; font-size: 11.5px; font-weight: 700; color: #C9D2EE; }
.sc-folder-a { top: 34px; inset-inline-end: 2%; transform: rotate(-5deg); background: #26335E; }
.sc-folder-b { top: 62px; inset-inline-end: 10%; transform: rotate(2deg); background: #314176; }
.sc-doc { position: absolute; top: 26px; inset-inline-start: 4%; width: 64%; min-height: 250px; padding: 20px 22px 18px; border-radius: 14px; background: var(--au-paper);
    box-shadow: 0 30px 60px -24px rgba(5, 10, 30, .75), 0 2px 0 rgba(255, 255, 255, .6) inset; transform: rotate(2.5deg); color: var(--au-ink); }
.sc-doc-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed #E3DCCB; }
.sc-doc-logo { width: 26px; height: 26px; border-radius: 7px; background: var(--au-navy); flex: 0 0 26px; }
.sc-doc-title { flex: 1; display: grid; gap: 6px; }
.sc-doc-title b { height: 8px; width: 70%; border-radius: 5px; background: #1F2B4D; }
.sc-doc-title em { height: 6px; width: 45%; border-radius: 5px; background: #D9DDE7; }
.sc-ref { direction: ltr ; font: 700 10.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #8A6A1F; background: #F6EDD6; padding: 5px 7px; border-radius: 6px; }
.sc-lines { display: grid; gap: 10px; padding: 16px 0 12px; }
.sc-lines i { height: 6px; border-radius: 4px; background: #E4E7EE; }
.sc-lines i:nth-child(2) { width: 92%; } .sc-lines i:nth-child(3) { width: 96%; } .sc-lines i:nth-child(4) { width: 80%; } .sc-lines i.is-short { width: 52%; }
.sc-sign { position: relative; padding-top: 4px; width: 66%; }
.sc-sig { display: block; width: 100%; height: 50px; }
.sc-sig path { stroke: #1E3A8A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: au-sign 1.5s cubic-bezier(.45, .05, .35, 1) .5s forwards; }
.sc-sign-label { display: block; margin-top: 2px; font-size: 10.5px; color: #8B93A7; }
.sc-seal { position: absolute; top: 196px; inset-inline-start: calc(4% + 64% - 74px); width: 92px; height: 92px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
    opacity: 0; transform: scale(1.35) rotate(18deg); animation: au-stamp .45s cubic-bezier(.3, 1.4, .5, 1) 1.9s forwards; }
.sc-seal svg { width: 100%; height: 100%; display: block; }
.sc-pill { position: absolute; top: 0; inset-inline-end: 24%; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
    background: #fff; color: #166534; font-size: 12.5px; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
    opacity: 0; transform: translateY(8px); animation: au-rise .4s ease 2.35s forwards; }
.sc-pill svg { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: #DCFCE7; }
@keyframes au-sign { to { stroke-dashoffset: 0; } }
@keyframes au-stamp { to { opacity: 1; transform: none; } }
@keyframes au-rise { to { opacity: 1; transform: none; } }

/* المزايا */
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.auth-points li { display: flex; align-items: flex-start; gap: 14px; }
.auth-point-ic { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(201, 162, 75, .13); color: var(--au-gold-soft); }
.auth-point-ic svg { width: 19px; height: 19px; }
.auth-points strong { display: block; font-size: 14.5px; color: #fff; margin-bottom: 2px; }
.auth-points p { margin: 0; font-size: 13px; line-height: 1.75; color: #A9B3CF; }

/* ------------------------------------------------------------ النموذج */
.auth-main { display: flex; flex-direction: column; align-items: center; padding: 32px 24px 20px; min-width: 0; }
.auth-mhead { display: none; }
.auth-card { width: 100%; max-width: 420px; margin: auto 0; padding: 8px 0; }
.auth-card.auth-card-wide { max-width: 470px; }
.auth-title { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: var(--au-ink); line-height: 1.4; }
.auth-sub { margin: 0 0 26px; font-size: 14px; line-height: 1.85; color: var(--au-ink-2); }
.auth-sub strong { color: var(--au-ink); }
.auth-badge-ic { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; background: #E8EEFE; color: var(--au-blue-ink); }
.auth-badge-ic svg { width: 24px; height: 24px; }
.auth-v2 .otp-icon { width: 48px; height: 48px; margin: 0 0 18px; border-radius: 14px; background: #E8EEFE; color: var(--au-blue-ink); }

.auth-alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.8; border: 1px solid transparent; }
.auth-alert svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; }
.auth-alert strong { display: block; }
.auth-alert.is-error { background: #FEF2F2; border-color: #FBD5D5; color: #9B1C1C; }
.auth-alert.is-warn { background: #FFF8EB; border-color: #F7DFB0; color: #8A4B08; }
.auth-alert.is-ok { background: #ECFDF3; border-color: #C3EFD3; color: #166534; }
.auth-alert b { font-variant-numeric: tabular-nums; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-field { display: grid; gap: 8px; }
.auth-field > label, .auth-label-row label { font-size: 13px; font-weight: 600; color: var(--au-ink); }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.auth-input { position: relative; display: flex; align-items: center; }
.auth-input > svg { position: absolute; inset-inline-start: 14px; width: 19px; height: 19px; color: var(--au-ink-3); pointer-events: none; transition: color .15s; }
.auth-v2 .auth-input input { width: 100%; height: 50px; padding: 0 46px; border: 1.5px solid var(--au-line); border-radius: 12px; background: #fff; color: var(--au-ink);
    font: inherit; font-size: 15.5px; text-align: left; transition: border-color .15s, box-shadow .15s, background .15s; }
.auth-v2 .auth-input input[dir="ltr"] { text-align: left ; }
.auth-v2 .auth-input input[dir="ltr"]::placeholder { text-align: left ; }
.auth-v2 .auth-input input::placeholder { color: #A7AEBE; }
.auth-v2 .auth-input input:hover { border-color: #C7CEDC; }
.auth-v2 .auth-input input:focus { outline: 0; border-color: var(--au-blue); box-shadow: 0 0 0 4px rgba(62, 99, 242, .14); }
.auth-input:focus-within > svg { color: var(--au-blue); }
.auth-v2 .auth-input input:disabled { background: #F1F3F7; color: var(--au-ink-3); cursor: not-allowed; }
.auth-field.is-invalid .auth-input input { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.auth-field.is-invalid > label { color: #B42318; }
.auth-eye { position: absolute; inset-inline-end: 6px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--au-ink-3); cursor: pointer; padding: 0; }
.auth-eye:hover { background: #F0F2F7; color: var(--au-ink); }
.auth-eye:focus-visible { box-shadow: 0 0 0 3px rgba(62, 99, 242, .3); outline: 0; }
.auth-eye svg { width: 19px; height: 19px; }
.auth-eye .eye-off { display: none; } .auth-eye[aria-pressed="true"] .eye-off { display: block; } .auth-eye[aria-pressed="true"] .eye-on { display: none; }
.auth-caps { margin: 0; font-size: 12.5px; color: #B45309; }
.auth-hint { margin: 0; font-size: 12.5px; color: var(--au-ink-3); line-height: 1.7; }
.auth-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.auth-meter i { height: 4px; border-radius: 3px; background: var(--au-line-2); transition: background .2s; }
.auth-meter[data-level="1"] i:nth-child(-n+1) { background: #E5484D; }
.auth-meter[data-level="2"] i:nth-child(-n+2) { background: #F59E0B; }
.auth-meter[data-level="3"] i:nth-child(-n+3) { background: #3E63F2; }
.auth-meter[data-level="4"] i { background: #16A34A; }

.auth-form label.auth-check { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--au-ink-2); cursor: pointer; user-select: none; width: fit-content; }
.auth-form label.auth-check input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; border-radius: 4px; box-shadow: none; accent-color: var(--au-blue); cursor: pointer; }
.auth-link { color: var(--au-blue-ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-v2 .btn-primary.auth-submit { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; margin-top: 4px; padding: 0 18px; border: 0; border-radius: 12px;
    background: var(--au-blue); color: #fff; font: inherit; font-size: 15.5px; font-weight: 700; text-decoration: none; cursor: pointer;
    box-shadow: 0 10px 22px -10px rgba(62, 99, 242, .7); transition: background .15s, transform .1s, box-shadow .15s; }
.auth-v2 .btn-primary.auth-submit:hover:not(:disabled) { background: var(--au-blue-ink); }
.auth-v2 .btn-primary.auth-submit:active:not(:disabled) { transform: translateY(1px); }
.auth-v2 .btn-primary.auth-submit:disabled { background: #9AA6C4; box-shadow: none; cursor: not-allowed; }
.auth-v2 .btn-primary.auth-submit:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(62, 99, 242, .3); }
.auth-help { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--au-line-2); font-size: 12.5px; line-height: 1.85; color: var(--au-ink-3); }
.auth-back { margin: 20px 0 0; text-align: center; }
.auth-v2 .auth-back-link { display: block; margin-top: 18px; text-align: center; }

/* صفحات التحقق بخطوتين (markup قديم: label فيه النص + input) */
.auth-form > label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--au-ink); }
.auth-v2 .auth-form > label input { width: 100%; height: 54px; border: 1.5px solid var(--au-line); border-radius: 12px; background: #fff; font: inherit; color: var(--au-ink); }
.auth-v2 .auth-form > label input:focus { outline: 0; border-color: var(--au-blue); box-shadow: 0 0 0 4px rgba(62, 99, 242, .14); }
.auth-v2 .otp-input { font-size: 24px !important; letter-spacing: 10px; text-align: center ; direction: ltr ; }
.auth-v2 .setup-steps { margin: 0 0 22px; padding-inline-start: 20px; display: grid; gap: 12px; font-size: 13.5px; line-height: 1.85; color: var(--au-ink-2); }
.auth-v2 .setup-secret-box { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #F1F4FA; border: 1px dashed #C8D0E0; text-align: center; }
.auth-v2 .setup-secret-box code { direction: ltr ; font-size: 15px; font-weight: 700; letter-spacing: 1.5px; color: var(--au-ink); word-break: break-all; }

.auth-foot { width: 100%; max-width: 470px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding-top: 24px; font-size: 12px; color: var(--au-ink-3); }
.auth-foot a { color: var(--au-ink-3); text-decoration: none; }
.auth-foot a strong { color: var(--au-ink-2); font-weight: 700; }
.auth-foot a:hover strong { color: var(--au-blue-ink); text-decoration: underline; text-underline-offset: 3px; }

form[data-shake] { animation: au-shake .42s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes au-shake { 15%, 85% { transform: translateX(2px); } 30%, 70% { transform: translateX(-4px); } 45%, 55% { transform: translateX(6px); } }

/* ------------------------------------------------------------ الشاشات الأصغر */
@media (max-width: 1180px) {
    .auth-scene { height: 270px; }
    .sc-doc { width: 70%; min-height: 230px; }
    .sc-seal { top: 178px; inset-inline-start: calc(4% + 70% - 74px); width: 82px; height: 82px; }
}
@media (max-width: 1000px) {
    .auth { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-main { padding: 0 0 18px; background: var(--au-bg); }
    .auth-mhead { display: flex; align-items: center; gap: 12px; width: 100%; padding: calc(env(safe-area-inset-top, 0px) + 22px) 22px 64px;
        background: radial-gradient(120% 90% at 90% 0%, rgba(201, 162, 75, .18), transparent 60%), linear-gradient(-160deg, var(--au-navy), var(--au-navy-2)); color: #fff; }
    .auth-mhead-text { display: grid; line-height: 1.4; }
    .auth-mhead-text strong { font-size: 17px; font-weight: 800; }
    .auth-mhead-text small { font-size: 12.5px; color: #B4BDD8; }
    .auth-card, .auth-card.auth-card-wide { width: calc(100% - 28px); max-width: 480px; margin: -40px 0 0; padding: 26px 22px 24px; border-radius: 18px; background: #fff;
        box-shadow: 0 18px 40px -22px rgba(20, 32, 56, .35), 0 1px 0 rgba(20, 32, 56, .04); }
    .auth-foot { width: calc(100% - 28px); max-width: 480px; justify-content: center; text-align: center; padding-top: 18px; }
    .auth-title { font-size: 23px; }
    .auth-sub { margin-bottom: 22px; }
}
@media (max-width: 380px) {
    .auth-card, .auth-card.auth-card-wide { width: calc(100% - 20px); padding: 22px 16px; }
    .auth-label-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .sc-sig path { animation: none; stroke-dashoffset: 0; }
    .sc-seal, .sc-pill { animation: none; opacity: 1; transform: none; }
    form[data-shake] { animation: none; }
}

/* (1.9.19) رابط تحميل برنامج الكمبيوتر */
.auth-desktop { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 9px 14px; border: 1px solid var(--au-line); border-radius: 10px; background: #fff; color: var(--au-ink-2); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s; }
.auth-desktop svg { width: 18px; height: 18px; color: var(--au-blue-ink); }
.auth-desktop:hover { border-color: var(--au-blue); color: var(--au-blue-ink); }

/* (1.9.20) شعار دوكسا الرسمي */
.auth-mark img { width: 100%; height: 100%; display: block; border-radius: 12px; }
.auth-logo { display: block; width: 210px; height: auto; border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06); }
@media (max-width: 1180px) { .auth-logo { width: 180px; } }
/* الشاشات القصيرة (لابتوب 768-900 بكسل ارتفاع): نصغّر الشعار والمشهد عشان مافيش تمرير */
@media (min-width: 1001px) and (max-height: 920px) {
    .auth-brand { padding-top: 28px; padding-bottom: 28px; gap: 18px; }
    .auth-logo { width: 150px; }
    .auth-brand-body { gap: 20px; }
    .auth-headline { font-size: 26px; }
    .auth-scene { height: 230px; }
    .sc-doc { min-height: 200px; padding: 16px 18px 14px; }
    .sc-lines { gap: 8px; padding: 12px 0 8px; }
    .sc-sig { height: 40px; }
    .sc-seal { top: 150px; width: 76px; height: 76px; }
    .auth-points { gap: 12px; }
    .auth-points p { font-size: 12.5px; line-height: 1.6; }
}

/* (1.10.0) زر تبديل اللغة في صفحات الدخول */
.auth-lang { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--au-ink, #1B2542); padding: 6px 14px; border: 1px solid rgba(27, 37, 66, .14); border-radius: 999px; text-decoration: none; margin-bottom: 10px; background: rgba(255, 255, 255, .7); }
.auth-lang:hover, .auth-lang:focus-visible { border-color: rgba(27, 37, 66, .35); background: #fff; }
