@font-face {
    font-family: PortalYekan;
    src: url('../fonts/iranyekan/woff2/IRANYekanWebRegular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: PortalYekan;
    src: url('../fonts/iranyekan/woff2/IRANYekanWebBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
.portal-page {
    --portal-green: #15584b;
    --portal-ink: #244239;
    --portal-muted: #71817a;
    --portal-line: #e3ebe6;
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    background: radial-gradient(ellipse at 50% 0, #e0eee6 0, #f3f6f3 52%, #f3f6f3 100%);
    color: var(--portal-ink);
    font-family: PortalYekan, Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}
.portal-page *, .portal-page *::before, .portal-page *::after { box-sizing: border-box; }
.portal-page h1, .portal-page h2, .portal-page p { margin: 0; }
.portal-page a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.portal-page button, .portal-page input { font: inherit; }
.portal-page button { cursor: pointer; }
.portal-page a:focus-visible, .portal-page button:focus-visible, .portal-page summary:focus-visible { outline: 3px solid #b79251; outline-offset: 4px; }
.portal-page img { max-width: 100%; height: auto; }
.portal-symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.portal-icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.portal-shell { width: min(480px, calc(100% - 40px)); margin: 42px auto 28px; }
.portal-brand { text-align: center; margin-bottom: 25px; }
.portal-logo { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 17px; padding: 12px; border: 1px solid #fff; background: #fff; border-radius: 23px; color: var(--portal-green); box-shadow: 0 10px 28px #15584b0d; }
.portal-logo img { width: 52px; height: 52px; object-fit: contain; }
.portal-logo .portal-icon { width: 37px; height: 37px; stroke-width: 1.5; }
.portal-brand h1 { font-size: 19px; font-weight: 700; line-height: 1.9; max-width: 420px; margin: auto; }
.portal-brand > p { font-size: 12px; color: var(--portal-muted); margin-top: 7px; }
.portal-card { background: #fff; border: 1px solid #e4ebe4; border-radius: 22px; box-shadow: 0 10px 40px #1b4f3506; }
.portal-home-card { padding: 25px; }
.portal-card-intro { font-size: 12px; color: var(--portal-muted); text-align: center; margin-bottom: 19px !important; }
.portal-home-actions { display: grid; gap: 12px; }
.portal-entry { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--portal-line); border-radius: 14px; transition: border-color .18s, background .18s, transform .18s; min-height: 88px; }
.portal-entry:hover { border-color: #b1c9bd; background: #f9fcf9; transform: translateY(-2px); }
.portal-entry-icon { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; background: #ecf4ee; color: #3b7561; border-radius: 13px; }
.portal-entry strong, .portal-entry small { display: block; }
.portal-entry strong { font-size: 14px; font-weight: 700; line-height: 1.8; }
.portal-entry small { font-size: 10px; color: var(--portal-muted); margin-top: 4px; }
.portal-entry-arrow { margin-right: auto; width: 19px; height: 19px; color: #91a69a; }
.portal-entry-primary { background: var(--portal-green); border-color: var(--portal-green); color: #fff !important; box-shadow: 0 6px 14px #15584b13; }
.portal-entry-primary:hover { background: #1b6958; border-color: #1b6958; }
.portal-entry-primary .portal-entry-icon { background: #ffffff18; color: #ecf3df; }
.portal-entry-primary small { color: #c6ddd0; }
.portal-entry-primary .portal-entry-arrow { color: #d6e5dc; }
.portal-icon-gold { background: #f8f1e4; color: #a38345; }
.portal-home-recovery { display: flex; align-items: center; justify-content: center; gap: 8px; color: #657e70 !important; margin-top: 20px; padding: 7px; font-size: 11px; }
.portal-home-recovery .portal-icon { width: 18px; height: 18px; }
.portal-home-recovery:hover { color: var(--portal-green) !important; text-decoration: underline; text-underline-offset: 4px; }
.portal-announcement { margin-top: 17px; padding: 21px 24px; }
.portal-news-label { display: flex; align-items: center; gap: 7px; color: #84927a; font-size: 10px; margin-bottom: 8px; }
.portal-news-label .portal-icon { width: 17px; height: 17px; }
.portal-announcement h2 { font-size: 13px; font-weight: 700; line-height: 2; overflow-wrap: anywhere; }
.portal-news-details summary { display: flex; align-items: center; gap: 7px; width: fit-content; font-size: 10px; color: var(--portal-muted); cursor: pointer; list-style: none; padding: 8px 0 0; }
.portal-news-details summary::-webkit-details-marker { display: none; }
.portal-news-details summary::marker { content: ''; }
.portal-news-details summary .portal-icon { width: 15px; height: 15px; }
.portal-news-close, .portal-news-details[open] .portal-news-open { display: none; }
.portal-news-details[open] .portal-news-close { display: inline; }
.portal-news-details[open] summary .portal-icon { transform: rotate(180deg); }
.portal-news-body { font-size: 12px; color: #63776b; line-height: 2.15; border-top: 1px solid var(--portal-line); margin-top: 12px; padding-top: 12px; overflow: auto; max-height: 180px; overflow-wrap: anywhere; }
.portal-news-body p + p { margin-top: 8px; }
.portal-news-body a { text-decoration: underline; }
.portal-news-body img, .portal-news-body video, .portal-news-body iframe { max-width: 100%; }
.portal-news-body img, .portal-news-body video { height: auto; }
.portal-news-body figure { margin-inline: 0; }
.portal-news-body table { border-collapse: collapse; max-width: 100%; }
.portal-news-body td, .portal-news-body th { border: 1px solid var(--portal-line); padding: 5px; }
.portal-footer { text-align: center; margin-top: 21px; color: var(--portal-muted); font-size: 10px; }
.portal-footer > a { display: inline-block; padding: 7px 14px; }
.portal-footer > a:hover { color: var(--portal-green); text-decoration: underline; }
.portal-footer-content { font-size: 10px; line-height: 2; margin-bottom: 7px; overflow-wrap: anywhere; }
.portal-footer-content a { text-decoration: underline; }
.portal-footer-content p { margin: 0; }

/* Login and recovery */
.portal-auth { width: min(460px, calc(100% - 40px)); margin-top: 25px; }
.portal-home-link { display: inline-flex; align-items: center; gap: 7px; padding-block: 5px; margin-bottom: 17px; color: var(--portal-muted) !important; font-size: 11px; }
.portal-home-link .portal-icon { width: 17px; height: 17px; transform: rotate(180deg); }
.portal-home-link:hover { color: var(--portal-green) !important; }
.portal-auth .portal-brand { margin-bottom: 20px; }
.portal-brand > .portal-app-name { font-size: 12px; color: #62776a; max-width: 360px; margin: auto; line-height: 2; }
.portal-auth-card { padding: 29px; }
.portal-form-heading { margin-bottom: 25px; text-align: center; }
.portal-form-heading h1 { font-size: 22px; font-weight: 700; color: var(--portal-green); }
.portal-form-heading p { font-size: 11px; color: var(--portal-muted); margin-top: 9px; line-height: 2; }
.portal-form { display: grid; gap: 17px; }
.portal-field { display: grid; gap: 7px; min-width: 0; }
.portal-field > span:first-child { font-size: 12px; font-weight: 700; }
.portal-field input { width: 100%; min-width: 0; height: 50px; border: 1px solid #dce5df; background: #fbfcfb; border-radius: 10px; padding: 11px 14px; font-size: 16px; color: var(--portal-ink); outline: none; transition: border-color .18s, box-shadow .18s; }
.portal-field input::placeholder { color: #a3afa5; font-size: 13px; }
.portal-field input:focus { border-color: #4a8b74; box-shadow: 0 0 0 3px #e6f1e9; background: #fff; }
.portal-password { position: relative; display: block; }
.portal-password input { padding-right: 65px; }
.portal-password button { position: absolute; right: 6px; top: 6px; height: 38px; border: 0; border-radius: 7px; background: transparent; color: #557366; font-size: 10px; min-width: 50px; padding: 5px 8px; }
.portal-password button:hover { background: #edf3ed; }
.portal-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 50px; border: 1px solid transparent; border-radius: 11px; padding: 12px 16px; font-size: 13px !important; font-weight: 700 !important; transition: background .18s; }
.portal-button-primary { color: #fff; background: var(--portal-green); margin-top: 4px; }
.portal-button-primary:hover { background: #1b6a58; }
.portal-button .portal-icon { width: 20px; height: 20px; }
.portal-captcha { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; border: 1px dashed #d9e3da; border-radius: 10px; background: #f8faf7; margin-bottom: -4px; }
.portal-captcha-picture { min-width: 0; width: 200px; }
.portal-captcha-picture img { display: block; width: 200px; height: auto; border-radius: 6px; }
.portal-captcha-refresh { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #5d7a69; background: none; border: 0; border-radius: 7px; min-width: 43px; min-height: 46px; padding: 4px; flex-shrink: 0; }
.portal-captcha-refresh:hover { background: #e9f0e7; }
.portal-captcha-refresh .portal-icon { width: 19px; height: 19px; }
.portal-captcha-refresh span { font-size: 8px; }
.portal-captcha-input { text-align: center; letter-spacing: 5px; }
.portal-recovery-link { display: flex; align-items: center; gap: 11px; margin-top: 23px; padding: 14px 12px; border: 1px solid #dce8df; border-radius: 11px; background: #f2f7f1; }
.portal-recovery-link:hover { background: #eaf3e7; border-color: #c8d9c8; }
.portal-recovery-icon { color: #537c60; flex-shrink: 0; }
.portal-recovery-link strong, .portal-recovery-link small { display: block; }
.portal-recovery-link strong { font-size: 11px; color: #2f604a; }
.portal-recovery-link small { font-size: 9px; color: #7a8f7c; margin-top: 3px; }
.portal-recovery-link > .portal-icon { width: 17px; height: 17px; margin-right: auto; color: #75977c; }
.portal-register-link { margin-top: 19px !important; font-size: 11px; text-align: center; color: var(--portal-muted); }
.portal-register-link a { color: var(--portal-green); font-weight: 700; padding: 5px; text-decoration: underline; text-underline-offset: 4px; }
.portal-auth-footnote { margin-top: 22px !important; text-align: center; font-size: 10px; color: #8a9a8e; }
.portal-alert { padding: 12px 14px; font-size: 12px; border: 1px solid; border-radius: 10px; margin-bottom: 18px; line-height: 2; }
.portal-alert p + p { margin-top: 5px; }
.portal-alert-error { background: #fff4f1; color: #a44736; border-color: #f2d9d0; }
.portal-alert-success, .portal-alert-info { background: #f0f7ee; color: #3e6c48; border-color: #d5e6d0; }
.portal-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.portal-method { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 9px; border: 1px solid #dfe7e1; border-radius: 12px; background: #fbfcfa; }
.portal-method .portal-icon { width: 23px; height: 23px; color: #82927f; }
.portal-method small, .portal-method strong { display: block; }
.portal-method small { font-size: 9px; color: #8b9a89; }
.portal-method strong { font-size: 11px; font-weight: 700; }
.portal-method:hover { border-color: #a8c3ac; }
.portal-method.is-active { border-color: #4f866a; background: #edf5eb; box-shadow: inset 0 0 0 1px #4f866a; color: #245b40; }
.portal-method.is-active .portal-icon, .portal-method.is-active small { color: #56805c; }
.portal-method-help { font-size: 11px; line-height: 2; color: var(--portal-muted); margin-bottom: 21px; }
.portal-method-help strong { font-size: 12px; color: #42614c; }
.portal-method-help p { margin-top: 5px; }
.portal-back-link { display: block; text-align: center; font-size: 11px; color: #68816d !important; padding: 9px; margin-top: 17px; }
.portal-back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 540px) {
    .portal-shell { width: calc(100% - 28px); margin-top: 27px; }
    .portal-brand { margin-bottom: 21px; }
    .portal-brand h1 { font-size: 17px; padding-inline: 12px; }
    .portal-logo { width: 68px; height: 68px; border-radius: 21px; margin-bottom: 14px; }
    .portal-logo img { width: 47px; height: 47px; }
    .portal-brand > p { font-size: 11px; }
    .portal-home-card { padding: 20px; }
    .portal-entry { padding: 15px; gap: 12px; min-height: 83px; }
    .portal-entry strong { font-size: 13px; }
    .portal-entry small { font-size: 9px; }
    .portal-entry-icon { width: 41px; height: 41px; border-radius: 12px; }
    .portal-announcement { padding: 18px 20px; }
    .portal-auth { margin-top: 12px; }
    .portal-auth .portal-brand { margin-bottom: 17px; }
    .portal-auth-card { padding: 25px 22px; }
    .portal-form-heading h1 { font-size: 21px; }
    .portal-home-link { margin-bottom: 12px; }
    .portal-form { gap: 16px; }
    .portal-recovery-link { padding: 13px 10px; gap: 9px; }
}
@media (max-width: 360px) {
    .portal-shell { width: calc(100% - 20px); }
    .portal-home-card, .portal-auth-card { padding: 20px 17px; }
    .portal-entry { padding: 13px; gap: 10px; }
    .portal-entry strong { font-size: 12px; }
    .portal-entry small { font-size: 8px; }
    .portal-entry-arrow { width: 16px; height: 16px; }
    .portal-method { padding: 12px 6px; gap: 7px; }
    .portal-method strong { font-size: 10px; }
    .portal-recovery-link small { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .portal-page *, .portal-page *::before, .portal-page *::after { transition: none !important; animation: none !important; }
}
