/* ── Vazirmatn: the page's own type.
   The site font (IRANSansWeb) ships a single weight, so every bold on the page was being faked by the browser —
   which is why headings looked smeared. These are the real weights. ── */
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/vazirmatn/Vazirmatn-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/vazirmatn/Vazirmatn-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/vazirmatn/Vazirmatn-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/vazirmatn/Vazirmatn-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/vazirmatn/Vazirmatn-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

/* ───────────────────────────────────────────────────────────────────────────
   The sign-in page.

   Deliberately not the floating two-pane card that every portal uses. The page
   is the layout: a full-height stage on one side, a solid sign-in column pinned
   to the other, so the form has the weight of a panel rather than of a widget.

   It renders inside the shared guest layout, so the first block undoes that
   layout's centred card wrapper.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── undo the shared layout ── */
body.HQ3 {
    background: #070c18;
    margin: 0;
    font-family: 'Vazirmatn', iransans, Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.HQ3 [class^="mdi-"], body.HQ3 [class*=" mdi-"] { font-family: 'Material Design Icons'; }
body.HQ3 > main { display: block !important; min-height: 0 !important; padding: 0 !important; }
body.HQ3 > main > .container { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
body.HQ3 .login-card { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
body.HQ3 .login-card .row { margin: 0 !important; }
body.HQ3 .login-card .col1,
body.HQ3 .chargoon-logo-container { display: none !important; }
body.HQ3 .login-card .col2 { flex: 0 0 100% !important; max-width: 100% !important; padding: 0 !important; background: transparent !important; }
body.HQ3 .card-body { width: 100% !important; margin: 0 !important; padding: 0 !important; }

/* ── tokens ── */
.au {
    --au-ink: #0b1220;
    --au-dim: #667085;
    --au-faint: #98a2b3;
    --au-line: #e4e8ef;
    --au-main: #1d5fe0;
    --au-main-dark: #1549b3;
    --au-deep-1: #060b18;
    --au-deep-2: #0c1a35;
    --au-panel: 480px;

    position: relative;
    display: flex;
    direction: rtl;
    min-height: 100vh;
    min-height: 100svh;
    font-family: 'Vazirmatn', iransans, Tahoma, sans-serif;
    overflow-x: hidden;

    /* the shared stylesheet sets text-align:left on the page, which in an RTL document pushes every
       paragraph to the wrong edge; and ss01 gives Vazirmatn its Persian digits, the way the old font did */
    text-align: right;
    font-feature-settings: 'ss01' 1;
}
.au *, .au-modal * { text-align: inherit; }
.au-modal { text-align: right; font-feature-settings: 'ss01' 1; }

/* ═══════════════ the sign-in column (right in RTL) ═══════════════ */
.au__panel {
    position: relative;
    z-index: 3;
    flex: 0 0 var(--au-panel);
    max-width: var(--au-panel);
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 40px 48px 32px;
    box-shadow: -28px 0 70px -30px rgba(3, 8, 20, .7);
}

.au__mark { display: flex; align-items: center; gap: 11px; }
.au__mark img, .au__mark svg { height: 38px; width: auto; display: block; object-fit: contain; }
.au__mark-text { font-size: 12.5px; font-weight: 700; color: var(--au-ink); line-height: 1.6; }
.au__mark-text small { display: block; font-size: 11px; font-weight: 400; color: var(--au-faint); }

.au__middle { margin: auto 0; padding: 26px 0 54px; }
.au__form-head { margin: 0 0 24px; }
.au__h1 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.3px; color: var(--au-ink); line-height: 1.6; }
.au__h1-sub { margin: 8px 0 0; font-size: 13px; color: var(--au-dim); line-height: 1.9; }

/* ── fields: the label rides up out of the box on focus ── */
.au__field { position: relative; margin-bottom: 15px; }

.au__field input {
    width: 100%;
    height: 58px;
    padding: 22px 46px 8px 44px;
    border: 1.5px solid var(--au-line);
    border-radius: 12px;
    background: #fbfcfe;
    font-family: inherit;
    font-size: 14px;
    color: var(--au-ink);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
    direction: rtl;
    text-align: right;
}
/* a national code and a password are both sequences of latin characters: typed and read left to right,
   while still starting at the right-hand edge where the cursor is expected */
.au__field input[type="password"],
.au__field input[inputmode="numeric"] { direction: ltr; text-align: right; letter-spacing: .3px; font-feature-settings: normal; }
.au__field input:hover { border-color: #cdd5e2; }
.au__field input:focus {
    outline: none;
    background: #fff;
    border-color: var(--au-main);
    box-shadow: 0 0 0 4px rgba(29, 95, 224, .12);
}
.au__field input::placeholder { color: transparent; }

.au__field label {
    position: absolute;
    inset-inline-start: 46px;
    top: 19px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--au-faint);
    pointer-events: none;
    transform-origin: right top;
    transition: transform .16s ease, color .16s ease;
}
.au__field input:focus + label,
.au__field input:not(:placeholder-shown) + label {
    transform: translateY(-12px) scale(.78);
    color: var(--au-dim);
}
.au__field input:focus + label { color: var(--au-main); }

.au__field .au__icon {
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 19px;
    color: #b4bdcc;
    transition: color .18s ease;
    pointer-events: none;
}
.au__field input:focus ~ .au__icon { color: var(--au-main); }

.au__eye {
    position: absolute;
    inset-inline-end: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #98a2b3;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}
.au__eye:hover { background: #f1f4f9; color: var(--au-ink); }

/* a detail people only notice when it saves them: caps lock is on */
.au__caps {
    display: none;
    align-items: center;
    gap: 6px;
    margin: -8px 0 14px;
    padding: 7px 11px;
    border-radius: 8px;
    background: #fef6e7;
    color: #93690e;
    font-size: 11.5px;
    font-weight: 600;
}
.au__caps.is-on { display: flex; }

.au__submit {
    text-align: center;
    position: relative;
    width: 100%;
    height: 54px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--au-main), var(--au-main-dark));
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 10px 22px -10px rgba(29, 95, 224, .75);
    transition: transform .14s ease, box-shadow .18s ease, filter .18s ease;
}
.au__submit:hover { filter: brightness(1.06); box-shadow: 0 14px 28px -10px rgba(29, 95, 224, .85); }
.au__submit:active { transform: translateY(1px); }
.au__submit i { font-size: 19px; transition: transform .2s ease; }
.au__submit:hover i { transform: translateX(-3px); }

.au__submit.is-busy { pointer-events: none; filter: saturate(.7); }
.au__submit.is-busy .au__submit-label, .au__submit.is-busy i { visibility: hidden; }
.au__submit.is-busy::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: au-spin .7s linear infinite;
}
@keyframes au-spin { to { transform: rotate(360deg); } }

.au__links { display: flex; align-items: center; gap: 14px; margin: 20px 0 0; font-size: 12.5px; }
.au__links a { color: var(--au-main); font-weight: 600; text-decoration: none; }
.au__links a:hover { text-decoration: underline; }
.au__links .au__sep { width: 1px; height: 13px; background: var(--au-line); }

.au__panel-foot {
    margin-top: auto;
    padding-top: 26px;
    border-top: 1px solid var(--au-line);
    font-size: 11.5px;
    color: var(--au-faint);
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.8;
}
.au__panel-foot i { font-size: 15px; color: #98a2b3; }

/* support: a real detail, not filler — it is only rendered when a contact is configured */
.au__help {
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid var(--au-line);
    border-radius: 12px;
    background: #fafbfd;
}
.au__help-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--au-ink); }
.au__help-top i { font-size: 16px; color: var(--au-main); }
.au__help-rows { margin: 9px 0 0; display: flex; flex-direction: column; gap: 6px; }
.au__help-row { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--au-dim); }
.au__help-row span, .au__help-row a { direction: ltr; unicode-bidi: plaintext; font-feature-settings: normal; }
.au__help-row i { font-size: 14px; color: #b4bdcc; }
.au__help-row a { color: var(--au-dim); text-decoration: none; direction: ltr; }
.au__help-row a:hover { color: var(--au-main); }

/* laravel's validation / flash messages */
.au__panel .alert { border-radius: 10px; font-size: 12.5px; padding: 11px 14px; }

/* ═══════════════ the stage (left in RTL) ═══════════════ */
.au__stage {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 34px 54px 40px;
    color: #fff;
    background: linear-gradient(145deg, var(--au-deep-1) 0%, var(--au-deep-2) 60%, #0a2f52 100%);
    overflow: hidden;
}

/* the colour behind everything: two slow-moving blooms, not a flat gradient */
.au__stage::before {
    content: '';
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(38% 38% at 22% 24%, rgba(45, 120, 255, .40), transparent 70%),
        radial-gradient(34% 34% at 80% 72%, rgba(0, 190, 190, .28), transparent 70%),
        radial-gradient(30% 30% at 62% 12%, rgba(120, 80, 255, .20), transparent 70%);
    animation: au-drift 26s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes au-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-3%, 3%, 0) scale(1.1); }
}

/* a fine grain so the large dark areas do not band */
.au__stage::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .4;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* the admin's background image, kept far back so the text stays readable */
.au__photo {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: .22;
    filter: saturate(.8);
    pointer-events: none;
}

.au__stage > * { position: relative; z-index: 2; }

.au__org { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.au__org::before { content: ''; width: 24px; height: 1.5px; background: rgba(255, 255, 255, .35); }

.au__say { margin: auto 0; padding: 26px 0; max-width: 640px; }
.au__kicker {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 13px; margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .85);
    backdrop-filter: blur(6px);
}
.au__kicker i { font-size: 14px; }

.au__display {
    margin: 0 0 16px;
    font-size: clamp(26px, 2.9vw, 40px);
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -.6px;
    text-wrap: balance;
}
.au__display b {
    font-weight: 800;
    background: linear-gradient(90deg, #7bb4ff, #5ce1d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.au__lede { margin: 0 0 22px; max-width: 520px; font-size: 13.5px; line-height: 2; color: rgba(255, 255, 255, .74); }

/* what the portal does, each with the one line that explains it */
.au__services { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 660px; }
.au__service {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 13px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.au__service:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); transform: translateY(-2px); }

.au__service-ico {
    flex: 0 0 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(123, 180, 255, .15);
}
.au__service-ico i { font-size: 18px; color: #8cc0ff; }

.au__service-text { min-width: 0; }
.au__service-text b { display: block; font-size: 12.5px; font-weight: 700; color: #fff; line-height: 1.7; }
.au__service-text small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; line-height: 1.85; color: rgba(255, 255, 255, .62); }

/* ── news rail along the bottom of the stage ── */
.au__news { margin-top: 0; }
.au__news-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.au__news-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .82); }
.au__news-title i { font-size: 15px; color: #5ce1d0; }
.au__news-nav { display: flex; gap: 6px; }
.au__news-btn {
    text-align: center;
    width: 30px; height: 30px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease, border-color .15s ease;
}
.au__news-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.au__news-btn[disabled] { opacity: .3; cursor: default; }

.au__rail { display: flex; gap: 13px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 2px; }
.au__rail::-webkit-scrollbar { display: none; }

.au__card {
    flex: 0 0 205px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
    text-align: right;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.au__card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); }

.au__card-img { text-align: center; height: 84px; background: rgba(255, 255, 255, .05); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.au__card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.au__card-img i { font-size: 26px; color: rgba(255, 255, 255, .3); }

.au__card-body { padding: 11px 13px 13px; }
.au__card-cat { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(92, 225, 208, .16); color: #5ce1d0; font-size: 10px; font-weight: 700; }
.au__card-title { margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.au__card-date { margin-top: 7px; font-size: 10.5px; color: rgba(255, 255, 255, .5); }

.au__news-empty { text-align: center !important; padding: 20px; border: 1px dashed rgba(255, 255, 255, .16); border-radius: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .55); text-align: center; }

/* ── entrance: a short stagger, nothing that delays reading ── */
.au__anim { opacity: 0; transform: translateY(14px); animation: au-in .6s cubic-bezier(.22, 1, .36, 1) forwards; }
.au__anim--1 { animation-delay: .05s; }
.au__anim--2 { animation-delay: .13s; }
.au__anim--3 { animation-delay: .21s; }
.au__anim--4 { animation-delay: .29s; }
@keyframes au-in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .au__anim { animation: none; opacity: 1; transform: none; }
    .au__stage::before { animation: none; }
    .au__rail { scroll-behavior: auto; }
}

/* ═══════════════ narrower screens ═══════════════ */
@media (max-width: 1180px) {
    .au { --au-panel: 420px; }
    .au__stage { padding: 34px 38px 28px; }
    .au__panel { padding: 34px 36px 28px; }
}

@media (max-width: 900px) {
    .au { flex-direction: column; min-height: 0; }
    .au__panel {
        flex: none; max-width: none; width: 100%;
        order: 1;
        padding: 30px 22px 26px;
        box-shadow: none;
        border-radius: 22px 22px 0 0;
        margin-top: -22px;
    }
    .au__stage { order: 0; padding: 26px 22px 28px; min-height: auto; }
    .au__mark { margin-bottom: 0; }
    .au__form-head { margin: 22px 0 20px; }
    .au__h1 { font-size: 22px; }
    .au__say { margin: 22px 0 0; }
    .au__display { font-size: 25px; line-height: 1.6; }
    .au__lede { font-size: 13px; line-height: 2; margin-bottom: 20px; }
    .au__news { margin-top: 24px; }
    .au__card { flex-basis: 176px; }
    .au__card-img { height: 80px; }
    .au__panel-foot { padding-top: 20px; }
}

@media (max-width: 620px) {
    .au__services { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .au__panel { padding: 26px 16px 22px; }
    .au__stage { padding: 22px 16px 24px; }
    .au__services { gap: 7px; }
    .au__service { padding: 8px 12px; font-size: 11.5px; }
}

/* ═══════════════ the two dialogs, matched to the page ═══════════════ */
.au-modal { font-family: 'Vazirmatn', iransans, Tahoma, sans-serif; }
.au-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -25px rgba(3, 8, 20, .5); }
.au-modal .modal-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--au-line, #e4e8ef); padding: 16px 20px; }
.au-modal .modal-title { margin: 0; }
/* bootstrap floats the close button and gives it negative margins meant for the other reading direction */
.au-modal .close {
    float: none; margin: 0; padding: 0; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 22px; line-height: 1; color: #667085; opacity: 1; text-shadow: none;
}
.au-modal .close:hover { background: #f1f4f9; color: #0b1220; }
.au-modal .modal-title { font-size: 15px; font-weight: 700; color: #0b1220; }
.au-modal .modal-body { padding: 20px; }
.au-modal .modal-footer { border-top: 1px solid var(--au-line, #e4e8ef); padding: 14px 20px; }
.au-modal label { font-size: 12.5px; font-weight: 600; color: #475467; }
.au-modal .form-control { height: 46px; border-radius: 10px; border: 1.5px solid #e4e8ef; font-size: 13.5px; background: #fbfcfe; }
.au-modal .form-control:focus { border-color: #1d5fe0; box-shadow: 0 0 0 4px rgba(29, 95, 224, .12); }
.au-modal .btn { border-radius: 10px; height: 42px; padding: 0 20px; font-size: 13px; font-weight: 700; border: 0; }
.au-modal .btn-primary { background: #1d5fe0; }
.au-modal .btn-primary:hover { background: #1549b3; }

/* the staff / student switch */
.au-modal .utype { display: flex; gap: 8px; margin-bottom: 16px; }
.au-modal .utype input { position: absolute; opacity: 0; pointer-events: none; }
.au-modal .utype label {
    text-align: center;
    flex: 1; margin: 0; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid #e4e8ef; border-radius: 10px;
    background: #fbfcfe; font-size: 13px; font-weight: 600; color: #475467;
    cursor: pointer; transition: all .15s ease;
}
.au-modal .utype input:checked + label { border-color: #1d5fe0; background: rgba(29, 95, 224, .07); color: #1d5fe0; }

.au-modal .post-img { width: 100%; border-radius: 12px; margin-bottom: 14px; }
.au-modal .post-cat { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(29, 95, 224, .1); color: #1d5fe0; font-size: 11px; font-weight: 700; }
.au-modal .post-date { margin: 9px 0 12px; font-size: 11.5px; color: #98a2b3; }
.au-modal .post-body { font-size: 13.5px; line-height: 2.1; color: #344054; }
.au-modal .post-body img { max-width: 100%; height: auto; border-radius: 10px; }
