/* Public pages, using Azea's Bootstrap components and primary color. */
.portal-page {
    --portal-primary: #664dc9;
    --portal-ink: #25233e;
    --portal-muted: #727287;
    --portal-line: #e7e5f0;
    background: #faf9fe;
    color: var(--portal-ink);
    font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    min-height: 100vh;
}
.portal-page a { text-decoration: none; }
.portal-page a:focus-visible, .portal-page button:focus-visible, .portal-page input:focus-visible { outline: 3px solid #a591ef; outline-offset: 4px; }
.portal-page .container { max-width: 1180px; padding-left: 28px; padding-right: 28px; }
.portal-skip { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; border-radius: 8px; color: #fff; background: #44328c; }
.portal-skip:focus { top: 12px; color: #fff; }
.portal-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--portal-ink); flex-shrink: 0; }
.portal-brand:hover { color: var(--portal-primary); }
.portal-brand-logo { display: block; width: 48px; height: 48px; max-width: 48px; max-height: 48px; flex: 0 0 48px; object-fit: contain; }
.portal-brand-mark { display: grid; place-items: center; width: 44px; height: 46px; border-radius: 13px 13px 13px 4px; background: var(--portal-primary); color: #fff; box-shadow: 0 5px 12px #664dc91c; font-size: 23px; }
.portal-brand strong { display: block; font-size: 25px; font-weight: 800; line-height: 1.15; letter-spacing: -.9px; }
.brand-dot { color: var(--portal-primary); }
.portal-brand small { display: block; margin-top: 5px; font-size: 8px; letter-spacing: 1.8px; color: var(--portal-muted); font-weight: 800; }
.portal-identity-logo { display: block; max-width: 100%; height: auto; object-fit: contain; border-radius: 18px; }
.portal-identity-fallback { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; color: inherit; }
.portal-identity-fallback i { font-size: 90px; }
.portal-identity-fallback strong { font-size: 28px; }
.portal-back { display: inline-flex; align-items: center; gap: 9px; color: var(--portal-muted); font-size: 13px; font-weight: 600; }
.portal-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; color: var(--portal-primary); }
.portal-eyebrow > span { height: 6px; width: 6px; background: currentColor; border-radius: 50%; }
.portal-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--portal-muted); font-size: 12px; padding-top: 26px; padding-bottom: 26px; }
.portal-footer a { color: #68617f; }
.portal-page .btn-primary { background: var(--portal-primary); border-color: var(--portal-primary); box-shadow: 0 6px 15px #664dc91c; }
.portal-page .btn-primary:hover { background: #553db2; border-color: #553db2; }
.portal-page .btn { font-weight: 700; border-radius: 9px; }
.portal-page .btn i { font-size: 17px; }

/* Authentication */
.portal-auth { display: flex; flex-direction: column; background: radial-gradient(ellipse at 12% 45%, #eeebfb 0, transparent 52%), #faf9fe; }
.auth-main { flex: 1; display: flex; align-items: center; padding-top: 20px; padding-bottom: 28px; }
.auth-shell { display: grid; grid-template-columns: 46% 54%; width: 100%; border-radius: 22px; background: #fff; box-shadow: 0 18px 70px #3022520b; border: 1px solid #eeebf6; overflow: hidden; }
.auth-story { position: relative; display: flex; flex-direction: column; padding: 48px 44px 34px; background: #49348b; color: #fff; overflow: hidden; }
.auth-story::before { content: ''; width: 480px; height: 480px; border-radius: 50%; border: 1px solid #ffffff0a; position: absolute; top: -330px; right: -210px; box-shadow: 0 0 0 50px #ffffff03, 0 0 0 100px #ffffff03; pointer-events: none; }
.auth-story .portal-eyebrow { color: #d0c3ff; position: relative; }
.auth-story h2 { color: #fff; font-size: clamp(30px, 3vw, 40px); letter-spacing: -1.3px; font-weight: 800; line-height: 1.2; margin: 25px 0 18px; position: relative; }
.auth-story h2 em { color: #cec0ff; font-style: normal; }
.auth-story > p { color: #d7ceee; font-size: 14px; line-height: 1.9; max-width: 335px; margin-bottom: 0; }
.auth-illustration { position: relative; min-height: 220px; flex: 1; margin: 24px 0; display: flex; align-items: center; justify-content: center; }
.auth-illustration .portal-identity-logo { width: 200px; max-height: 300px; background: #fff; padding: 12px; box-shadow: 0 12px 30px #24155330; }

.auth-story-foot { display: flex; align-items: center; gap: 12px; color: #c9bde9; font-size: 11px; padding-top: 20px; border-top: 1px solid #ffffff1a; }
.auth-story-foot > i { font-size: 24px; color: #bba7fc; }.auth-story-foot strong { color: #eee7ff; font-weight: 600; }
.auth-panel { display: flex; flex-direction: column; padding: 44px 60px 22px; min-width: 0; }
.auth-panel-content { width: 100%; max-width: 390px; margin: auto; padding-bottom: 24px; }
.auth-page-icon { width: 45px; height: 45px; border-radius: 13px; color: var(--portal-primary); background: #f1edfd; display: grid; place-items: center; font-size: 21px; margin-bottom: 24px; }
.auth-panel h1 { font-size: 28px; letter-spacing: -.9px; font-weight: 800; margin: 9px 0 10px; line-height: 1.25; color: var(--portal-ink); }
.auth-description { font-size: 13px; line-height: 1.8; color: var(--portal-muted); margin-bottom: 24px; }
.portal-field { margin-bottom: 18px; }
.portal-field label { display: block; font-weight: 700; font-size: 12px; margin-bottom: 8px; color: #474257; }
.portal-input-wrap { position: relative; }
.portal-input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 17px; color: #a19aae; pointer-events: none; }
.portal-field .form-control { height: 49px; padding: 10px 46px; border: 1px solid #e4e0ed; border-radius: 8px; background: #fdfcfe; font-size: 12px; color: var(--portal-ink); }
.portal-field .form-control::placeholder { color: #a29baa; opacity: 1; }
.portal-field .form-control:focus { border-color: #9580de; background: #fff; box-shadow: 0 0 0 3px #664dc90d; }
.portal-field .form-control.is-invalid { border-color: #d14b65; background-image: none; }
.portal-password-toggle { width: 44px; height: 44px; display: grid; place-items: center; position: absolute; top: 50%; right: 3px; transform: translateY(-50%); background: transparent; border: 0; border-radius: 6px; font-size: 17px; color: #8c839c; }
.portal-password-toggle:hover { color: var(--portal-primary); background: #f1edfd; }
.portal-field-error { color: #bb334f; font-size: 12px; margin: 6px 0 0; }
.auth-form-options { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 3px 0 24px; font-size: 12px; }
.auth-form-options a, .auth-return a { color: #6349bc; font-weight: 700; }
.portal-checkbox { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #797186; cursor: pointer; }
.portal-checkbox input { width: 15px; height: 15px; accent-color: var(--portal-primary); cursor: pointer; }
.portal-submit { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13px; }
.auth-help { display: flex; gap: 11px; align-items: flex-start; background: #f8f7fc; border-radius: 8px; padding: 14px 16px; margin-top: 25px; font-size: 11px; color: #8a8299; }
.auth-help > i { font-size: 16px; color: #9a8abf; margin-top: 3px; }.auth-help p { margin: 0; }.auth-help strong { color: #716780; font-weight: 600; }
.auth-panel-foot { font-size: 10px; text-align: center; color: #948b9f; border-top: 1px solid #f0edf5; padding-top: 18px; }.auth-panel-foot i { margin-right: 5px; }
.auth-return { margin: 20px 0 0; text-align: center; font-size: 12px; }.auth-return i { margin-right: 7px; }
.portal-alert { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; padding: 12px 14px; border-radius: 8px; line-height: 1.7; }.portal-alert > i { margin-top: 4px; }

/* Welcome */
.portal-welcome { background: radial-gradient(ellipse at 83% 20%, #eeebfc 0, transparent 36%), #faf9fe; }
.portal-nav { display: flex; align-items: center; gap: 30px; }.portal-nav-link { color: #797184; font-size: 13px; font-weight: 600; }
.portal-nav-button { display: flex; align-items: center; gap: 18px; padding: 11px 18px; font-size: 12px; }
.welcome-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding-top: 52px; padding-bottom: 74px; }
.hero-eyebrow { border: 1px solid #e4dcf9; border-radius: 30px; padding: 8px 12px; background: #f2eefc; font-size: 9px; letter-spacing: 1.35px; }
.welcome-copy h1 { font-size: clamp(42px, 4.6vw, 62px); line-height: 1.12; letter-spacing: -2.8px; font-weight: 800; color: var(--portal-ink); margin: 24px 0 22px; }.welcome-copy h1 > span { color: var(--portal-primary); }
.welcome-copy > p { color: #7c758b; font-size: 14px; line-height: 1.95; max-width: 405px; margin-bottom: 28px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }.portal-cta { display: inline-flex; align-items: center; gap: 24px; padding: 14px 22px; font-size: 13px; }.hero-explore { color: #6e657e; font-weight: 700; font-size: 12px; }.hero-explore i { margin-left: 8px; }
.hero-assurance { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; color: #8a8296; font-size: 10px; }.hero-assurance i { color: #8975bc; margin-right: 4px; }
.welcome-visual { position: relative; min-height: 470px; display: flex; align-items: center; justify-content: center; min-width: 0; }
.welcome-visual .portal-identity-logo { width: 340px; max-height: 510px; box-shadow: 0 18px 50px #48308313; }

.welcome-services { padding-top: 40px; padding-bottom: 48px; border-top: 1px solid var(--portal-line); scroll-margin-top: 24px; }
.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }.section-intro h2 { font-size: 27px; font-weight: 800; color: var(--portal-ink); letter-spacing: -.8px; margin: 10px 0 0; }.section-intro > p { font-size: 12px; color: #94899e; margin: 0; }
.jatake-footer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border: 1px solid #ded8cc; border-radius: 16px; padding: 18px; background: #fff; color: #0b2345; }
.jf-item { display: flex; align-items: center; gap: 12px; padding: 0 12px; border-right: 1px solid #ded8cc; min-width: 0; }
.jf-item:last-child { border: 0; }
.jf-icon { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; background: #0b2345; color: #fff; display: grid; place-items: center; }
.jf-item:nth-child(even) .jf-icon { background: #b88729; }
.jf-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jf-item h3 { font-size: 14px; font-weight: 700; margin: 0 0 5px; color: inherit; }
.jf-item p { font-size: 13px; line-height: 1.45; margin: 0; }
.portal-page .amber { background: #fcf0dd; color: #be924d; }.portal-page .mint { background: #e7f3ed; color: #66a38a; }
.welcome-workflow { padding-bottom: 26px; scroll-margin-top: 24px; }.workflow-banner { display: flex; justify-content: space-between; align-items: center; gap: 30px; background: #49348b; border-radius: 14px; padding: 32px 36px; }.workflow-banner .portal-eyebrow { color: #bbabe9; font-size: 9px; }.workflow-banner h2 { font-size: 23px; font-weight: 700; color: #fff; margin: 10px 0; letter-spacing: -.5px; }.workflow-banner p { color: #cbbce6; font-size: 12px; margin: 0; }.portal-light-button { display: inline-flex; align-items: center; gap: 18px; white-space: nowrap; padding: 13px 20px; background: #fff; color: #574095; font-size: 12px; }.portal-light-button:hover { background: #eee8fb; color: #49348b; }

@media (min-width: 1400px) { .auth-main { max-width: 1120px !important; } }
@media (max-width: 900px) {
    .jatake-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jf-item:nth-child(2) { border: 0; }
}
@media (max-width: 520px) {
    .jatake-footer { grid-template-columns: 1fr; }
    .jf-item { border: 0; padding: 8px; }
    .welcome-visual .portal-identity-logo { width: 280px; }
}
@media (max-width: 1199.98px) {
    .auth-story { padding: 40px 32px 30px; }.auth-panel { padding: 38px 38px 22px; }
    .welcome-hero { gap: 24px; }.welcome-copy h1 { font-size: 53px; }.hero-assurance { gap: 12px; }
}
@media (max-width: 991.98px) {
    .portal-header { min-height: 94px; }.auth-story h2 { font-size: 32px; }.auth-story { padding: 36px 26px 28px; }.auth-story > p { font-size: 13px; }.auth-panel { padding: 34px 28px 20px; }.auth-panel h1 { font-size: 25px; }
    .welcome-hero { padding-top: 34px; padding-bottom: 65px; }.welcome-copy h1 { font-size: 45px; letter-spacing: -2px; }.welcome-copy > p { font-size: 13px; }.welcome-visual { min-height: 440px; }.hero-actions { gap: 17px; }.hero-assurance { font-size: 9px; gap: 10px; }.portal-cta { gap: 14px; padding: 13px 18px; }
    .section-intro h2 { font-size: 24px; }.section-intro > p { font-size: 11px; }.workflow-banner { padding: 28px; }.workflow-banner h2 { font-size: 21px; }
}
@media (max-width: 767.98px) {
    .portal-page .container { padding-left: 22px; padding-right: 22px; }.portal-header { min-height: 90px; gap: 12px; }.portal-brand strong { font-size: 22px; }.portal-brand small { font-size: 7px; letter-spacing: 1.1px; }.portal-brand-mark { width: 38px; height: 40px; font-size: 21px; }.portal-back { font-size: 11px; gap: 5px; }
    .auth-main { padding-top: 8px; padding-bottom: 12px; }.auth-shell { grid-template-columns: 1fr; border-radius: 18px; max-width: 480px; margin: auto; }.auth-story { display: none; }.auth-panel { padding: 32px 30px 22px; }.auth-page-icon { margin-bottom: 20px; }.auth-panel-content { padding-bottom: 28px; }.auth-panel h1 { font-size: 27px; }.portal-footer { flex-wrap: wrap; justify-content: center; text-align: center; gap: 5px 20px; font-size: 10px; }
    .portal-nav { gap: 14px; }.portal-nav-link { display: none; }.portal-nav-button { font-size: 10px; padding: 10px 12px; gap: 7px; }.portal-nav-button i { font-size: 14px; }
    .welcome-hero { grid-template-columns: 1fr; gap: 45px; padding-top: 28px; padding-bottom: 65px; }.welcome-copy { max-width: 540px; }.welcome-copy h1 { font-size: clamp(44px, 9vw, 58px); }.welcome-copy > p { max-width: 460px; font-size: 14px; }.hero-assurance { font-size: 10px; gap: 16px; }.welcome-visual { width: 100%; max-width: 500px; min-height: 460px; margin: auto; }
    .welcome-services { padding-top: 32px; padding-bottom: 34px; }.section-intro { display: block; margin-bottom: 24px; }.section-intro h2 { font-size: 25px; }.section-intro > p { margin-top: 12px; font-size: 12px; }.section-intro > p br { display: none; }.workflow-banner { display: block; padding: 28px 24px; }.workflow-banner h2 { font-size: 24px; line-height: 1.35; }.workflow-banner p { margin-bottom: 22px; }.portal-welcome .portal-footer { padding-bottom: 25px; }
}
@media (max-width: 399.98px) {
    .portal-page .container { padding-left: 16px; padding-right: 16px; }.portal-brand { gap: 8px; }.portal-brand strong { font-size: 21px; }.portal-brand small { letter-spacing: .7px; font-size: 6px; }.portal-back { max-width: 118px; line-height: 1.5; }.auth-panel { padding: 28px 22px 20px; }.auth-panel h1 { font-size: 25px; }.auth-panel .portal-eyebrow { font-size: 9px; letter-spacing: 1.3px; }.hero-assurance { gap: 9px; font-size: 9px; }.welcome-visual { min-height: 440px; }
}
@media (max-width: 359.98px) {
    .portal-header { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
    .portal-nav, .portal-back { margin-left: auto; }
}
