/* =========================================================
   ITQAN student auth — split-screen design system (v3)
   Drive Option C layout + Workplace YaPI brand tokens
   (public/css/yapi-metronic-theme.css).

   Rules of the house
   - Everything lives under .itq-auth so no other page, layout or
     module can inherit these rules by accident.
   - The public theme injects `* { font-family: Verdana }` and
     `p { font-size: 18px }`; the hardening block below beats both
     without !important, so the same markup renders identically on
     the standalone auth layout and inside the public site chrome.
   - Logical properties everywhere (inline-start/end) so Arabic,
     Dari and Pashto mirror without a second stylesheet.
   - One type scale: 13 / 14 / 15 / 16 / 20 / 26 / 32 (+ the brand headline).
   - Markup contract: resources/views/components/auth/itqan-shell.blade.php
   ========================================================= */

.itq-auth {
    /* brand */
    --itq-teal: #0B6B6F;
    --itq-teal-dk: #095A5E;
    --itq-teal-ink: #05403F;
    --itq-navy: #0A2F57;
    --itq-gold: #FAA936;
    /* small gold text on the photo panel: 8.0:1 on brand ink; the pure gold measured 3.2:1 over the pattern */
    --itq-gold-soft: #FFCB7A;
    --itq-green: #0DB04B;
    --itq-green-dk: #08853A;
    --itq-blue: #007DC4;
    --yapi-deep: #0B6B6F;
    --yapi-binding: #56C596;
    --yapi-light-ink: #8F6300;
    /* neutrals */
    --itq-ink: #17262E;
    --itq-muted: #50606A;
    --itq-faint: #64747E;
    --itq-link: #0B6B6F;
    --itq-line: #DCE5E0;
    /* control outlines: 3.4:1 on white (WCAG 1.4.11 asks for 3:1); hover 5.8:1 */
    --itq-edge: #7C8F87;
    --itq-edge-hover: #566A62;
    --itq-field: #F4F7F5;
    --itq-danger: #B83A2E;
    /* layout */
    --itq-col: 440px;
    --itq-font: "Poppins", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --itq-radius: 12px;
    font-family: var(--itq-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--itq-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
[dir="rtl"] .itq-auth {
    --itq-font: "Noto Sans Arabic", "Poppins", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
.itq-auth--wide { --itq-col: 620px; }

/* ---------- hardening against global theme CSS ---------- */
.itq-auth *, .itq-auth *::before, .itq-auth *::after { box-sizing: border-box; }
/* Every descendant inherits the shell font, structural tags included: the public master layout's
   `*, h1..h6 { font-family: Verdana }` otherwise breaks the inheritance chain at <main>/<section>/<form>.
   Icon fonts are excluded so Font Awesome keeps its own family. */
.itq-auth :where(*:not(.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands)) { font-family: inherit; }
.itq-auth :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.itq-auth :where(ul, ol) { padding: 0; list-style: none; }
.itq-auth :where(p) { font-size: 15px; line-height: 1.6; }
.itq-auth img, .itq-auth svg { max-width: 100%; }
.itq-auth [hidden] { display: none !important; }
/* keyboard focus: a solid brand-teal ring (6.3:1 on white), never a faded one */
.itq-auth a:focus-visible, .itq-auth button:focus-visible, .itq-auth summary:focus-visible, .itq-auth .itq-auth__choice:focus-visible {
    outline: 3px solid var(--itq-teal);
    outline-offset: 3px;
}

/* ---------- shell: brand panel | top bar + stage + footer ---------- */
.itq-auth__wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(620px 420px at 100% 0%, rgba(86, 197, 150, .10), transparent 70%),
        radial-gradient(520px 380px at 100% 100%, rgba(250, 169, 54, .06), transparent 70%),
        #fff;
}
.itq-auth--wide .itq-auth__wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }

/* The top bar, card and footer share one centred column, so the logo, the language switch and the
   fields all sit on the same two edges. */
.itq-auth__top {
    grid-column: 2; grid-row: 1; justify-self: center;
    width: min(calc(100% - 64px), var(--itq-col));
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 28px 0 0;
}
.itq-auth__brand { display: block; line-height: 0; }
.itq-auth__logo { display: block; width: 176px; max-width: 100%; height: auto; }

.itq-auth__stage {
    grid-column: 2; grid-row: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 0; padding: 24px 32px 20px;
}
.itq-auth__card { width: 100%; max-width: var(--itq-col); animation: itq-fade .5s ease both; }
.itq-auth--wide .form-group { margin-bottom: 18px; }
.itq-auth__foot {
    grid-column: 2; grid-row: 3; justify-self: center;
    width: min(calc(100% - 64px), var(--itq-col));
    /* Start-aligned and kept clear of the third-party chat bubble that sits bottom-right on wide screens. */
    padding-block: 4px 28px; padding-inline: 0 96px; text-align: start; text-wrap: balance;
    font-size: 13px; line-height: 1.6; color: var(--itq-faint);
}
.itq-auth__foot a { font-size: inherit; font-weight: 600; color: var(--itq-faint); }
.itq-auth__foot span { display: block; }

/* ---------- brand panel: the halaqah photo in full colour, melting into brand teal ---------- */
.itq-auth__side {
    grid-column: 1; grid-row: 1 / span 3;
    position: sticky; top: 0; align-self: start;
    height: 100vh; height: 100dvh; overflow: hidden; color: #fff;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1'%3E%3Cg stroke-opacity='.10'%3E%3Crect x='24' y='24' width='48' height='48'/%3E%3Crect x='24' y='24' width='48' height='48' transform='rotate(45 48 48)'/%3E%3C/g%3E%3Ccircle cx='48' cy='48' r='11' stroke-opacity='.08'/%3E%3Cpath d='M0 0l24 24M96 0L72 24M0 96l24-24M96 96L72 72' stroke-opacity='.06'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 96px 96px,
        radial-gradient(560px 380px at 0% 100%, rgba(86, 197, 150, .10), transparent 72%),
        var(--itq-teal-ink);
}
.itq-auth__photo {
    position: absolute; inset: 0 0 auto 0; height: 66%;
    background: url("../img/auth-side.jpg") 50% 42% / cover no-repeat;
    filter: saturate(1.06) contrast(1.03);
    animation: itq-settle 1.6s cubic-bezier(.2, .6, .2, 1) both;
}
/* melt: transparent over the faces, solid brand teal where the text starts */
.itq-auth__photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5, 64, 63, .18) 0%, rgba(5, 64, 63, 0) 22%, rgba(5, 64, 63, .30) 52%, rgba(5, 64, 63, .86) 82%, var(--itq-teal-ink) 100%);
}
.itq-auth__side--points .itq-auth__photo::after {
    background: linear-gradient(180deg, rgba(5, 64, 63, .18) 0%, rgba(5, 64, 63, 0) 20%, rgba(5, 64, 63, .38) 42%, rgba(5, 64, 63, .88) 68%, var(--itq-teal-ink) 100%);
}
.itq-auth__side::after {
    content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 4px; z-index: 3;
    background: linear-gradient(180deg, var(--itq-gold), var(--itq-green) 55%, var(--itq-blue));
}
.itq-auth__side-inner {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 0 64px 52px;
}
.itq-auth__side-inner > * { animation: itq-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.itq-auth__side-inner > :nth-child(2) { animation-delay: .06s; }
.itq-auth__side-inner > :nth-child(3) { animation-delay: .14s; }
.itq-auth__side-inner > :nth-child(4) { animation-delay: .22s; }
.itq-auth__kicker {
    display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px;
    font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--itq-gold-soft); text-shadow: 0 1px 2px rgba(3, 32, 31, .55);
}
.itq-auth__kicker::before { content: ""; width: 32px; height: 2px; background: var(--itq-gold); }
[dir="rtl"] .itq-auth__kicker { letter-spacing: 0; }
.itq-auth .itq-auth__headline {
    max-width: 560px; margin: 0; font-size: clamp(32px, 3vw, 46px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: #fff;
    text-wrap: balance;
}
[dir="rtl"] .itq-auth .itq-auth__headline { letter-spacing: 0; line-height: 1.3; }
.itq-auth__quote { margin: 22px 0 0; padding: 0; border: 0; }
.itq-auth .itq-auth__ayah {
    margin: 0; font-family: "Amiri", "Traditional Arabic", serif; font-size: 30px; line-height: 1.7; font-weight: 700;
    direction: rtl; unicode-bidi: isolate; text-align: left; color: #FFF1CF; text-shadow: 0 1px 3px rgba(3, 32, 31, .45);
}
[dir="rtl"] .itq-auth .itq-auth__ayah { text-align: right; }
/* The hadith's translation (English, Malay): white, so the gold stays with the Arabic and its source. */
.itq-auth .itq-auth__ayah-translation {
    max-width: 520px; margin: 2px 0 8px; font-size: 17px; line-height: 1.5; font-weight: 500;
    color: rgba(255, 255, 255, .94); text-shadow: 0 1px 3px rgba(3, 32, 31, .6); text-wrap: balance;
}
/* Hyphenated words (al-Quran, Sebaik-baik) never break at the hyphen. */
.itq-auth__nb { white-space: nowrap; }
.itq-auth .itq-auth__ayah-ref { margin: 0; font-size: 13px; line-height: 1.5; color: var(--itq-gold-soft); text-shadow: 0 1px 2px rgba(3, 32, 31, .55); }
.itq-auth__points { display: grid; gap: 14px; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.itq-auth__points li { display: flex; align-items: center; gap: 14px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.itq-auth__points i {
    flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center;
    border: 1px solid rgba(250, 169, 54, .55); border-radius: 50%; background: rgba(250, 169, 54, .10); color: var(--itq-gold); font-size: 13px;
}

/* ---------- language switcher: one segmented control ---------- */
.itq-auth__langs {
    display: inline-flex; flex-wrap: nowrap; gap: 2px; margin: 0; padding: 3px;
    border: 1px solid var(--itq-line); border-radius: 999px; background: #F1F5F3;
}
.itq-auth .itq-auth__langs a {
    display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px;
    border: 0; border-radius: 999px; background: transparent;
    font-size: 13px; font-weight: 600; line-height: 1; color: var(--itq-muted); text-decoration: none; white-space: nowrap;
    transition: background .2s, color .2s, box-shadow .2s;
}
.itq-auth .itq-auth__langs a:hover { color: var(--itq-teal); text-decoration: none; background: rgba(11, 107, 111, .07); }
.itq-auth .itq-auth__langs a.is-active { background: var(--itq-teal); color: #fff; box-shadow: 0 4px 10px -4px rgba(11, 107, 111, .7); }
.itq-auth__langs .lang-short { display: none; }

/* ---------- card typography ---------- */
.itq-auth .itq-auth__title { margin: 0 0 8px; font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: var(--itq-navy); }
[dir="rtl"] .itq-auth .itq-auth__title { letter-spacing: 0; line-height: 1.35; }
.itq-auth .itq-auth__sub { margin: 0 0 28px; font-size: 16px; line-height: 1.55; color: var(--itq-muted); }
/* A title with no subtitle under it (set-new-password, reset-link states) still needs air before the first control. */
.itq-auth .itq-auth__title + form,
.itq-auth .itq-auth__title + .alert,
.itq-auth .itq-auth__title + .primary-btn { margin-top: 22px; }
.itq-auth a { font-size: 14px; font-weight: 600; color: var(--itq-link); text-decoration: none; }
.itq-auth a:hover { color: var(--itq-teal-dk); text-decoration: underline; text-underline-offset: 3px; }
.itq-auth .text-center { text-align: center; }
.itq-auth .text-danger { color: var(--itq-danger); }
.itq-auth .text-success { color: var(--itq-green-dk); }

/* ---------- alerts ---------- */
.itq-auth .alert { margin: 0 0 18px; padding: 13px 16px; border: 1px solid transparent; border-radius: var(--itq-radius); font-size: 14px; line-height: 1.6; }
.itq-auth .alert-danger { background: #FFF4F2; border-color: #F3C9C3; color: #8A2A20; }
.itq-auth .alert-success { background: #EAF7EF; border-color: #BFE3CB; color: #14693A; }
.itq-auth .alert-info { background: #EEF6FB; border-color: #C6E0EF; color: #0A4A75; }
.itq-auth .alert-warning { background: #FFF8E8; border-color: #F2DDA8; color: #7A5200; }
.itq-auth .alert a { font-size: inherit; text-decoration: underline; color: inherit; }

/* ---------- fields ---------- */
.itq-auth .form-group { position: relative; margin: 0 0 20px; }
.itq-auth .field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 8px; }
.itq-auth .field-label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--itq-ink); }
.itq-auth .field-head .field-label { margin: 0; }
.itq-auth .field-label .req { color: var(--itq-danger); margin-inline-start: 2px; }
.itq-auth .login-field-shell { position: relative; }
.itq-auth .form-control {
    display: block; width: 100%; height: 52px; margin: 0; padding: 0 48px;
    background: #fff; border: 1.5px solid var(--itq-edge); border-radius: var(--itq-radius); box-shadow: inset 0 1px 2px rgba(10, 47, 87, .04);
    font: inherit; font-size: 16px; color: var(--itq-ink);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.itq-auth .form-control:hover { border-color: var(--itq-edge-hover); }
.itq-auth .form-control::placeholder { color: #66767F; opacity: 1; }
.itq-auth .form-control:focus { outline: none; background: #fff; border-color: var(--itq-teal); box-shadow: 0 0 0 4px rgba(11, 107, 111, .14); }
.itq-auth .form-control.is-invalid { background: #FFF8F7; border-color: var(--itq-danger); box-shadow: none; }
.itq-auth .form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(184, 58, 46, .14); }
[dir="rtl"] .itq-auth input[type="email"], [dir="rtl"] .itq-auth input[type="password"], [dir="rtl"] .itq-auth input[name="username"] { direction: ltr; text-align: right; }
.itq-auth .input-icon {
    position: absolute; inset-inline-start: 18px; top: 50%; z-index: 2; transform: translateY(-50%);
    font-size: 15px; color: var(--itq-faint); pointer-events: none; transition: color .2s;
}
.itq-auth .login-field-shell:focus-within .input-icon { color: var(--itq-teal); }
.itq-auth .password-toggle {
    position: absolute; inset-inline-end: 8px; top: 50%; z-index: 3; transform: translateY(-50%);
    min-width: 40px; min-height: 40px; padding: 0; display: grid; place-items: center;
    background: none; border: 0; border-radius: 10px; color: var(--itq-muted); font-size: 15px; cursor: pointer;
}
.itq-auth .password-toggle:hover { color: var(--itq-teal); background: rgba(11, 107, 111, .08); }
.itq-auth .invalid-feedback { display: block; margin: 7px 0 0; font-size: 13px; line-height: 1.5; color: var(--itq-danger); }
.itq-auth .invalid-feedback strong { font-weight: 600; }
.itq-auth .itq-hint { margin: 7px 0 0; font-size: 13px; line-height: 1.55; color: var(--itq-faint); }
.itq-auth .field-link { display: inline-block; margin: 0; font-size: 13px; }
.itq-auth .row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: -2px 0 22px; }
.itq-auth .itq-check { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--itq-ink); cursor: pointer; }
.itq-auth .itq-check input {
    appearance: none; -webkit-appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; display: grid; place-content: center;
    border: 1.5px solid var(--itq-edge); border-radius: 6px; background: #fff; cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.itq-auth .itq-check input::before {
    content: ""; width: 11px; height: 11px; background: #fff; transform: scale(0); transition: transform .12s ease-out;
    clip-path: polygon(14% 46%, 0 64%, 42% 100%, 100% 18%, 82% 0, 41% 62%);
}
.itq-auth .itq-check input:checked { background: var(--itq-teal); border-color: var(--itq-teal); }
.itq-auth .itq-check input:checked::before { transform: scale(1); }
.itq-auth .itq-check input:hover { border-color: var(--itq-edge-hover); }
.itq-auth .itq-check input:focus-visible { outline: 3px solid var(--itq-teal); outline-offset: 2px; }
.itq-auth__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.itq-auth__grid > .span-all { grid-column: 1 / -1; }
.itq-auth__honeypot { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.itq-auth .primary-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin: 0; padding: 10px 20px;
    height: auto; border: 0; border-radius: var(--itq-radius); cursor: pointer; overflow: visible; white-space: normal;
    font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: .1px; text-transform: none; text-shadow: none; text-decoration: none;
    transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.itq-auth .primary-btn.fix-gr-bg, .itq-auth a.primary-btn.fix-gr-bg {
    background: var(--itq-teal); color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 20px -12px rgba(11, 107, 111, .9);
}
.itq-auth .primary-btn.fix-gr-bg:hover { background: var(--itq-teal-dk); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 14px 24px -12px rgba(11, 107, 111, .95); }
.itq-auth .primary-btn.fix-gr-bg:active { transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 6px 12px -8px rgba(11, 107, 111, .9); }
/* Not-yet-ready buttons read as intentionally inactive (neutral tint), never as a broken, half-faded brand button.
   Beats the inline pending styles from turnstile-guard-styles (opacity .55). */
.itq-auth .primary-btn.fix-gr-bg:disabled,
.itq-auth .primary-btn.fix-gr-bg.turnstile-guard-pending {
    background: #D6E1DD; color: #566A63; box-shadow: none; opacity: 1; cursor: not-allowed; transform: none;
}
.itq-auth .primary-btn:disabled { cursor: not-allowed; transform: none; }
.itq-auth .primary-btn.btn-outline, .itq-auth a.primary-btn.btn-outline { background: #fff; color: var(--itq-ink); border: 1.5px solid var(--itq-edge); box-shadow: none; }
.itq-auth .primary-btn.btn-outline:hover { color: var(--itq-ink); text-decoration: none; border-color: var(--itq-teal); background: #F3F9F8; }
.itq-auth a.primary-btn.btn-outline.login-google-pending,
.itq-auth a.primary-btn.btn-outline.turnstile-guard-pending { opacity: 1; background: #fff; border-color: var(--itq-line); color: #75867F; box-shadow: none; }
.itq-auth a.primary-btn.login-google-pending svg, .itq-auth a.primary-btn.turnstile-guard-pending svg { opacity: .5; filter: grayscale(.5); }
.itq-auth .primary-btn svg { flex: 0 0 20px; width: 20px; height: 20px; }
.itq-auth .login_button .primary-btn, .itq-auth .btn-stack .primary-btn { margin-bottom: 12px; }
.itq-auth .or-sep { display: flex; align-items: center; gap: 16px; margin: 20px 0; font-size: 13px; color: var(--itq-faint); }
.itq-auth .or-sep::before, .itq-auth .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--itq-line); }
.itq-auth .itqan-field-hint { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--itq-faint); text-align: center; }
.itq-auth .foot-note { margin: 22px 0 0; font-size: 14px; line-height: 1.7; color: var(--itq-muted); text-align: center; }
.itq-auth .foot-note a { font-size: inherit; }
.itq-auth .back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; }
.itq-auth hr.light-grey-hr { height: 1px; margin: 22px 0; border: 0; background: var(--itq-line); }

/* ---------- Cloudflare Turnstile (hidden unless Cloudflare needs a click; spans the column when it does) ---------- */
.itq-auth .login-turnstile-wrap, .itq-auth .turnstile-wrap, .itq-auth .itq-auth__turnstile { display: flex; flex-direction: column; align-items: stretch; margin: 0; }
.itq-auth .login-turnstile-wrap > .form-group, .itq-auth .turnstile-wrap > .form-group { margin-bottom: 0; }
.itq-auth .cf-turnstile, .itq-auth [data-itqan-turnstile-host] { display: flex; justify-content: center; }
.itq-auth .cf-turnstile:not(:empty) iframe, .itq-auth [data-itqan-turnstile-host]:not(:empty) iframe { max-width: 100%; }
.itq-auth .turnstile-status-feedback { width: 100%; margin: 0 0 16px; padding: 11px 14px; border: 1px solid #F3C9C3; border-radius: var(--itq-radius); background: #FFF4F2; }
.itq-auth .turnstile-status-feedback__text { font-size: 13px; }

/* ---------- password recovery hub ---------- */
.itq-auth .recovery-hub__lead { margin: 0 0 20px; font-size: 15px; line-height: 1.65; color: var(--itq-muted); }
.itq-auth .recovery-hub__links { margin-top: 6px; font-size: 14px; text-align: center; }
.itq-auth .recovery-hub__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.itq-auth .recovery-hub__footer--single { justify-content: center; }
.itq-auth .recovery-hub__more { margin: 0 0 16px; }
.itq-auth .recovery-hub__more summary { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--itq-link); cursor: pointer; }
.itq-auth .recovery-hub__account { margin-bottom: 12px; padding: 16px 18px 6px; border: 1.5px solid var(--itq-line); border-radius: 14px; background: #FBFCFA; }
.itq-auth .recovery-hub__account-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.itq-auth .recovery-hub__account-name { font-weight: 600; color: var(--itq-ink); overflow-wrap: anywhere; }
.itq-auth .recovery-hub__role { flex: 0 0 auto; padding: 2px 10px; border-radius: 999px; background: rgba(250, 169, 54, .18); color: var(--yapi-light-ink); font-size: 12px; font-weight: 600; }
.itq-auth .recovery-hub__role--student { background: rgba(0, 125, 196, .12); color: #00548A; }
.itq-auth .recovery-hub__username { margin: 0 0 12px; font-size: 14px; color: var(--itq-muted); }
.itq-auth .recovery-hub__username code { display: inline-block; direction: ltr; unicode-bidi: isolate; font-size: 14px; font-weight: 700; color: var(--itq-ink); background: none; padding: 0; }
.itq-auth .recovery-hub__links--card { margin: -2px 0 10px; }

/* ---------- sections + radio cards (account reactivation) ---------- */
.itq-auth .itq-auth__section + .itq-auth__section { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--itq-line); }
.itq-auth .itq-auth__subtitle { margin: 0 0 4px; font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--itq-navy); }
.itq-auth .itq-hint--lead { margin: 0 0 16px; font-size: 14px; }
.itq-auth .itq-radio {
    position: relative; display: block; margin: 0 0 12px; padding: 15px 16px 15px 52px;
    border: 1.5px solid var(--itq-line); border-radius: 14px; background: #fff; cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
[dir="rtl"] .itq-auth .itq-radio { padding: 15px 52px 15px 16px; }
.itq-auth .itq-radio:hover { border-color: rgba(11, 107, 111, .5); }
.itq-auth .itq-radio input[type="radio"] {
    appearance: none; -webkit-appearance: none; position: absolute; inset-inline-start: 16px; top: 18px; width: 22px; height: 22px; margin: 0;
    display: grid; place-content: center; border: 1.5px solid var(--itq-edge); border-radius: 50%; background: #fff; cursor: pointer;
    transition: border-color .15s;
}
.itq-auth .itq-radio input[type="radio"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--itq-teal); transform: scale(0); transition: transform .12s ease-out; }
.itq-auth .itq-radio input[type="radio"]:checked { border-color: var(--itq-teal); }
.itq-auth .itq-radio input[type="radio"]:checked::before { transform: scale(1); }
.itq-auth .itq-radio:has(input:checked) { border-color: var(--itq-teal); background: #F1F8F7; box-shadow: 0 0 0 3px rgba(11, 107, 111, .12); }
.itq-auth .itq-radio:has(input:focus-visible) { outline: 3px solid var(--itq-teal); outline-offset: 2px; }
.itq-auth .itq-radio__body { display: block; }
.itq-auth .itq-radio__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.itq-auth .itq-radio__name { font-weight: 600; color: var(--itq-ink); overflow-wrap: anywhere; }
.itq-auth .itq-radio__meta { display: block; margin-top: 2px; font-size: 13px; line-height: 1.55; color: var(--itq-muted); }
.itq-auth .itq-radio__meta code { display: inline-block; direction: ltr; unicode-bidi: isolate; font-size: 13.5px; font-weight: 700; color: var(--itq-ink); background: none; padding: 0; }
.itq-auth .itq-radio__tag { display: inline-block; margin-inline-start: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.itq-auth .itq-radio__tag.is-active { background: #EAF7EF; color: #14693A; }
.itq-auth .itq-radio__tag.is-archived { background: #FFF4F2; color: #8A2A20; }
.itq-auth__choice {
    display: flex; align-items: center; gap: 16px; margin-bottom: 12px; padding: 16px 18px;
    border: 1.5px solid var(--itq-line); border-radius: 14px; background: #fff; color: var(--itq-ink); text-decoration: none;
    transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.itq-auth__choice:hover { border-color: var(--itq-teal); background: #F3F9F8; color: var(--itq-ink); text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 22px -16px rgba(11, 107, 111, .7); }
.itq-auth__choice-icon { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(11, 107, 111, .10); color: var(--itq-teal); font-size: 18px; }
.itq-auth__choice-t { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--itq-ink); }
.itq-auth__choice-d { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; line-height: 1.55; color: var(--itq-muted); }
.itq-auth__choice-arrow { margin-inline-start: auto; color: var(--itq-faint); font-size: 12px; transition: transform .2s; }
.itq-auth__choice:hover .itq-auth__choice-arrow { transform: translateX(3px); color: var(--itq-teal); }
[dir="rtl"] .itq-auth__choice-arrow, [dir="rtl"] .itq-auth .back-link i { transform: scaleX(-1); }
[dir="rtl"] .itq-auth__choice:hover .itq-auth__choice-arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- registration ---------- */
.itq-auth__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 20px; margin: 0 0 26px; }
.itq-auth__head > div { flex: 1 1 280px; min-width: 0; }
.itq-auth__head .itq-auth__sub { margin-bottom: 0; }
.itq-guide { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; margin: 2px 0 0; padding: 6px 14px 6px 6px; border: 1.5px solid var(--itq-line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--itq-ink); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
[dir="rtl"] .itq-guide { padding: 6px 6px 6px 14px; }
.itq-guide:hover { border-color: var(--itq-teal); box-shadow: 0 8px 18px -12px rgba(11, 107, 111, .7); }
.itq-guide__play { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--itq-teal); color: #fff; font-size: 11px; }
.itq-guide__time { padding: 2px 8px; border-radius: 999px; background: rgba(11, 107, 111, .1); font-size: 12px; font-weight: 700; color: var(--itq-teal); }
.itqan-guide-dialog { width: min(720px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #0B1E19; color: #fff; }
.itqan-guide-dialog::backdrop { background: rgba(6, 59, 42, .7); backdrop-filter: blur(3px); }
.itqan-guide-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.itqan-guide-dialog-head h2 { margin: 0; font-size: 15px; font-weight: 600; color: #fff; }
.itqan-guide-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.itqan-guide-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.itqan-guide-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.itqan-guide-caption { margin: 0; padding: 10px 18px 14px; font-size: 13px; color: rgba(255, 255, 255, .7); }

.success-page-container { text-align: center; }
.itq-success__icon { width: 76px; height: 76px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--itq-green), var(--itq-green-dk)); color: #fff; font-size: 30px; box-shadow: 0 16px 30px -16px rgba(8, 133, 58, .85), 0 0 0 8px rgba(13, 176, 75, .10); }
.itq-success__email { display: inline-block; margin: 2px 0; padding: 2px 10px; border-radius: 8px; background: rgba(11, 107, 111, .1); font-weight: 600; color: var(--itq-teal); overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; }
.itq-success__actions { display: grid; gap: 12px; margin: 26px 0 18px; }
.itq-success__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.itq-success__social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid var(--itq-line); border-radius: 50%; color: var(--itq-muted); font-size: 15px; }
.itq-success__social a:hover { border-color: var(--itq-teal); color: var(--itq-teal); text-decoration: none; }

.itq-faq { width: 100%; max-width: var(--itq-col); margin: 44px auto 0; }
.itq-faq__title { margin: 0 0 16px; font-size: 22px; font-weight: 700; color: var(--itq-navy); }
.itq-faq__search { position: relative; margin-bottom: 14px; }
.itq-faq__search .itq-faq__clear { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--itq-muted); cursor: pointer; }
.itq-faq__empty { margin: 10px 0 0; font-size: 14px; color: var(--itq-muted); }
.itq-faq__item { margin: 0 0 8px; border: 1.5px solid var(--itq-line); border-radius: 14px; background: #fff; transition: border-color .2s; }
.itq-faq__item[open] { border-color: rgba(11, 107, 111, .4); }
.itq-faq__item summary { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--itq-ink); cursor: pointer; list-style: none; }
.itq-faq__item summary::-webkit-details-marker { display: none; }
.itq-faq__item summary::after { content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin: 7px 2px 0 auto; border-inline-end: 2px solid var(--itq-muted); border-bottom: 2px solid var(--itq-muted); transform: rotate(45deg); transition: transform .2s; }
.itq-faq__item[open] summary::after { transform: rotate(-135deg); margin-top: 11px; }
.itq-faq__num { flex: 0 0 auto; min-width: 24px; font-size: 13px; font-weight: 700; color: var(--itq-teal); }
.itq-faq__a { padding: 0 16px 16px 52px; font-size: 14px; line-height: 1.75; color: var(--itq-muted); overflow-x: auto; }
[dir="rtl"] .itq-faq__a { padding: 0 52px 16px 16px; }
.itq-faq__a ul { margin: 8px 0; padding-inline-start: 20px; list-style: disc; }
.itq-faq__a a { font-size: inherit; }
.itq-faq__a table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13px; }
.itq-faq__a th, .itq-faq__a td { padding: 6px 8px; border: 1px solid var(--itq-line); text-align: start; vertical-align: top; }
.itq-faq__a th { background: var(--itq-field); font-weight: 600; color: var(--itq-ink); }

/* ---------- legacy /student/* pages inside the public site chrome ---------- */
.itq-auth--boxed .itq-auth__wrap { min-height: 0; margin: 32px 0; border: 1.5px solid var(--itq-line); border-radius: 22px; overflow: hidden; box-shadow: 0 22px 46px -28px rgba(10, 47, 87, .4); }
.itq-auth--boxed .itq-auth__side { position: relative; align-self: stretch; height: auto; min-height: 560px; }
.itq-auth--boxed .itq-auth__stage { padding: 44px 40px; }


/* ---------- short desktop windows ---------- */
/* without the value points the text block is short, so the picture can run lower before it melts */
@media (min-width: 992px) {
    .itq-auth__side--lite .itq-auth__photo { height: 74%; }
}
@media (max-height: 820px) and (min-width: 992px) {
    .itq-auth__photo { height: 60%; }
    .itq-auth__side--lite .itq-auth__photo { height: 68%; }
    .itq-auth__side-inner { padding-bottom: 40px; }
    .itq-auth .itq-auth__ayah { font-size: 27px; }
    .itq-auth .itq-auth__ayah-translation { margin-bottom: 6px; font-size: 16px; }
    .itq-auth__points { margin-top: 20px; padding-top: 18px; gap: 11px; }
    .itq-auth__points i { flex-basis: 30px; width: 30px; height: 30px; }
    .itq-auth__top { padding-top: 20px; }
    .itq-auth__stage { padding-block: 16px 12px; }
    .itq-auth .itq-auth__sub { margin-bottom: 22px; }
    .itq-auth .form-group { margin-bottom: 16px; }
    .itq-auth .or-sep { margin: 16px 0; }
    .itq-auth .foot-note { margin-top: 16px; }
    .itq-auth__foot { padding-bottom: 18px; }
}
@media (max-height: 700px) and (min-width: 992px) {
    .itq-auth__points { display: none; }
    .itq-auth__side-inner { padding-bottom: 32px; }
    .itq-auth__photo { height: 56%; }
    .itq-auth__side--lite .itq-auth__photo { height: 62%; }
}
/* RTL puts the photo under the floating support-chat bubble; keep the last line clear of it */
@media (min-width: 992px) {
    [dir="rtl"] .itq-auth:not(.itq-auth--boxed) .itq-auth__side-inner { padding-bottom: 104px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .itq-auth__side-inner { padding: 0 40px 44px; }
    .itq-auth .itq-auth__headline { font-size: 32px; }
    .itq-auth .itq-auth__ayah { font-size: 26px; }
    .itq-auth .itq-auth__ayah-translation { font-size: 15px; }
    .itq-auth__stage, .itq-auth--boxed .itq-auth__stage { padding-inline: 24px; }
    .itq-auth__top, .itq-auth__foot { width: min(calc(100% - 48px), var(--itq-col)); }
}
@media (min-width: 1700px) {
    .itq-auth { --itq-col: 480px; }
    .itq-auth--wide { --itq-col: 660px; }
    .itq-auth .itq-auth__title { font-size: 36px; }
    .itq-auth .itq-auth__sub { font-size: 17px; }
    .itq-auth__side-inner { padding: 0 88px 64px; }
    .itq-auth .itq-auth__headline { font-size: 52px; max-width: 640px; }
    .itq-auth .itq-auth__ayah { font-size: 34px; }
    .itq-auth .itq-auth__ayah-translation { max-width: 600px; font-size: 20px; }
    .itq-auth__points li { font-size: 15.5px; }
}

/* ---------- tablet + phone: logo bar, rounded photo card, then the form ---------- */
@media (max-width: 991.98px) {
    .itq-auth__wrap, .itq-auth--wide .itq-auth__wrap { display: flex; flex-direction: column; }
    .itq-auth__top { order: 1; width: auto; justify-self: auto; padding: 18px 20px 14px; }
    .itq-auth__logo { width: 150px; }
    .itq-auth__side { order: 2; position: relative; align-self: stretch; height: auto; margin: 0 16px; border-radius: 22px; }
    .itq-auth__photo { height: 100%; background-position: 50% 34%; animation: none; }
    .itq-auth__photo::after, .itq-auth__side--points .itq-auth__photo::after { background: linear-gradient(180deg, rgba(5, 64, 63, 0) 0%, rgba(5, 64, 63, .14) 28%, rgba(5, 64, 63, .80) 56%, rgba(5, 64, 63, .94) 100%); }
    .itq-auth__side::after { top: auto; inset-inline: 0; bottom: 0; width: auto; height: 4px; background: linear-gradient(90deg, var(--itq-gold), var(--itq-green) 55%, var(--itq-blue)); }
    .itq-auth__side-inner { height: auto; min-height: 220px; padding: 96px 22px 24px; }
    .itq-auth__kicker { margin-bottom: 8px; font-size: 12px; }
    .itq-auth .itq-auth__headline { max-width: none; font-size: 24px; letter-spacing: -.015em; }
    .itq-auth__quote { margin-top: 10px; }
    .itq-auth .itq-auth__ayah { font-size: 22px; line-height: 1.6; }
    .itq-auth .itq-auth__ayah-translation { max-width: none; margin-bottom: 6px; font-size: 15px; }
    .itq-auth__points { display: none; }
    .itq-auth__stage { order: 3; flex: 1 0 auto; justify-content: flex-start; padding: 28px 20px 12px; }
    .itq-auth__card { max-width: 560px; }
    .itq-auth__foot { order: 4; width: auto; padding: 8px 20px 112px; text-align: center; }
    .itq-auth .itq-auth__title { font-size: 28px; }
    .itq-auth--boxed .itq-auth__wrap { margin: 16px 0; border-radius: 18px; }
    .itq-auth--boxed .itq-auth__side { min-height: 0; margin: 0; border-radius: 0; }
    .itq-auth--boxed .itq-auth__stage { padding: 26px 20px 30px; }
}
@media (max-width: 767.98px) {
    .itq-auth__photo { background-image: url("../img/auth-side-sm.jpg"); }
}
@media (max-width: 575.98px) {
    .itq-auth__side-inner { min-height: 188px; padding-top: 84px; }
    /* Phones: the logo already names the foundation, so the photo card keeps just the hadith. */
    .itq-auth__kicker, .itq-auth .itq-auth__headline { display: none; }
    .itq-auth__quote { margin-top: 0; }
    .itq-auth .itq-auth__ayah { font-size: 24px; }
    .itq-auth .itq-auth__ayah-translation { font-size: 14px; line-height: 1.45; }
    /* The translation lines grow this card downwards, which slid the Arabic onto the bright part of the photo (2.0:1 behind it, 6.3:1 before).
       End the melt at the Arabic's top edge (the 84px of padding above it) so the Arabic keeps its dark backdrop. */
    .itq-auth__side--translated .itq-auth__photo::after { background: linear-gradient(180deg, rgba(5, 64, 63, 0) 0, rgba(5, 64, 63, .14) 42px, rgba(5, 64, 63, .80) 84px, rgba(5, 64, 63, .94) 188px, rgba(5, 64, 63, .94) 100%); }
    .itq-auth .itq-auth__title { font-size: 26px; }
    .itq-auth .itq-auth__sub { margin-bottom: 24px; font-size: 15px; }
    .itq-auth .form-control { font-size: 16px; }
}
@media (max-width: 480px) {
    .itq-auth__langs .lang-full { display: none; }
    .itq-auth__langs .lang-short { display: inline; }
    .itq-auth .itq-auth__langs a { padding: 0 12px; min-height: 34px; }
    .itq-auth__logo { width: 136px; }
}
@media (max-width: 359px) {
    .itq-auth__turnstile, .itq-auth .login-turnstile-wrap, .itq-auth .turnstile-wrap { transform: scale(.9); transform-origin: center top; }
}

/* ---------- motion ---------- */
@keyframes itq-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes itq-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes itq-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    .itq-auth *, .itq-auth *::before, .itq-auth *::after { transition: none !important; animation: none !important; }
}
