:root{--txt:#202c40;--muted:#59667a;--line:#dfe5ef;--card:#fff;--accent:#5a59a6;--box-bg:#f3f5f9}*{box-sizing:border-box}.aisy-secure-portal{margin:0;background:#f3f5f9;color:var(--txt);font:15px/1.6 "Segoe UI",system-ui,sans-serif}.aisy-secure-portal [hidden]{display:none!important}.aisy-secure-portal header{display:flex;align-items:center;gap:24px;padding:18px max(24px,calc((100vw - 1200px)/2));border-bottom:1px solid var(--line);background:white;min-height:80px}.aisy-secure-portal header span{font-size:14px;color:var(--muted)}.aisy-secure-portal header img{display:block;width:116px;height:auto}.aisy-secure-portal header button{margin-left:auto;min-height:44px;background:white;border:1px solid var(--line);border-radius:10px;padding:9px 14px;color:var(--txt);font-weight:650;cursor:pointer}.aisy-secure-portal main{max-width:1248px;padding:44px 24px 64px;margin:auto}.aisy-secure-portal #loginGate{display:flex;align-items:center;justify-content:center;min-height:calc(100dvh - 270px);padding:12px 0}.aisy-secure-portal .lg-card{background:white;padding:36px;border:1px solid var(--line);border-top:4px solid var(--accent);border-radius:22px;box-shadow:0 16px 48px #17233d0d}.aisy-secure-portal h1{font-size:clamp(30px,4vw,44px);line-height:1.15;letter-spacing:-1px;margin:12px 0 18px}.aisy-secure-portal .lg-card h1{font-size:32px}.aisy-secure-portal .eyebrow{font-size:11px;font-weight:750;letter-spacing:.13em;color:var(--accent)}.aisy-secure-portal p{color:var(--muted)}.aisy-secure-portal .lg-sub{font-size:14px;margin:0 0 24px}.aisy-secure-portal .lg-form label{display:block;font-size:13px;font-weight:650;margin:14px 0 7px}.aisy-secure-portal .lg-form input{width:100%;min-height:48px;font:16px system-ui;background:#fff;border:1px solid #ccd5e3;border-radius:10px;padding:11px 13px}.aisy-secure-portal .btn-primary{display:block;width:100%;min-height:48px;border:none;border-radius:10px;background:var(--accent);color:#fff;font:650 15px system-ui;cursor:pointer}.aisy-secure-portal .lg-foot{font-size:12px;margin:22px 0 0}#lgErr{font-size:13px;color:#b42318;min-height:20px;margin:12px 0}.aisy-secure-portal .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:30px 0}.aisy-secure-portal .card{display:flex;flex-direction:column;padding:28px;border:1px solid var(--line);border-radius:18px;background:white;color:var(--txt);text-decoration:none;box-shadow:0 8px 24px #17233d05;transition:transform .18s,border-color .18s}.aisy-secure-portal .card:hover{transform:translateY(-3px);border-color:var(--accent)}.aisy-secure-portal .card h2{font-size:26px;margin:20px 0 10px}.aisy-secure-portal .card p{font-size:15px;flex:1;margin:0 0 24px}.aisy-secure-portal .card-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted)}.aisy-secure-portal .card-top svg{width:48px;height:48px;padding:10px;background:#eeeeF8;border-radius:12px;stroke:var(--accent);fill:none;stroke-width:1.6}.aisy-secure-portal .card-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:20px;color:var(--accent);font-size:14px;font-weight:650}.aisy-secure-portal .card-bottom svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.6}.security-status{display:inline-flex;border:1px solid #b4d9c5;color:#286345;background:#edf8f1;padding:6px 11px;border-radius:20px;font-size:12px;font-weight:650}.aisy-secure-portal .fine{font-size:13px;max-width:75ch}.aisy-secure-portal footer{max-width:1248px;margin:auto;padding:24px;display:flex;justify-content:space-between;gap:16px;font-size:12px;color:var(--muted)}.aisy-secure-portal :is(a,button,input):focus-visible{outline:3px solid #8b89d6;outline-offset:3px}.aisy-secure-portal button:disabled{opacity:.6;cursor:wait}.aisy-secure-portal .aisy-mfa-open>h1,.aisy-secure-portal .aisy-mfa-open>.eyebrow{display:none}@media(max-width:850px){.aisy-secure-portal .cards{grid-template-columns:1fr}.aisy-secure-portal main{padding:28px 20px}.aisy-secure-portal header{padding:16px 20px;gap:14px}.aisy-secure-portal .card{padding:24px}.aisy-secure-portal .lg-card{padding:28px 22px}.aisy-secure-portal footer{flex-wrap:wrap;padding:20px}.aisy-secure-portal header span{display:none}}@media(prefers-reduced-motion:reduce){.aisy-secure-portal .card{transition:none}.aisy-secure-portal .card:hover{transform:none}}

@media(min-width:761px){.aisy-secure-portal .cards{grid-template-columns:repeat(2,minmax(0,1fr));}}
/* Keep the complete portal canvas, including the footer, in the selected appearance. */
.aisy-secure-portal{min-height:100dvh;display:flex;flex-direction:column}.aisy-secure-portal header{flex-shrink:0}.aisy-secure-portal main{width:100%;flex:1}.aisy-secure-portal footer{width:100%;max-width:none;margin:0;background:var(--card);border-top:1px solid var(--line);padding-inline:max(24px,calc((100vw - 1200px)/2))}

/* DOCflow keeps its product identity inside the AISY workspace. */
.aisy-secure-portal .card-docflow .card-top img{display:block;width:48px;height:48px;padding:5px;object-fit:contain;background:#fff0f1;border-radius:12px}.aisy-secure-portal .docflow-wordmark{color:#e63946}.aisy-secure-portal .card-docflow:hover{border-color:#e63946}.aisy-secure-portal .card-docflow .card-bottom{color:#d52e43}[data-theme=dark] .aisy-secure-portal .card-docflow .card-top img{background:#39272d}[data-theme=dark] .aisy-secure-portal .docflow-wordmark,[data-theme=dark] .aisy-secure-portal .card-docflow .card-bottom{color:#ff8b8f}.aisy-secure-portal .card-docflow h2{letter-spacing:-.7px}
