.public-page{margin:0;min-height:100vh;background:linear-gradient(to right, #A18CD1, #FBC2EB);color:#30283f;font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.public-page *{box-sizing:border-box}
.public-page a{color:#623d91;text-underline-offset:3px}
.public-page a:hover{color:#402366}
.public-page :focus-visible{outline:3px solid #463087;outline-offset:4px}
.public-shell{width:min(1100px,calc(100% - 48px));margin:0 auto}
.public-shell.public-compact{max-width:740px}
.public-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:28px 0}
.public-page .brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:#30283f;min-width:0}
.brand img{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:0;padding:0;flex-shrink:0}
.login-page .brand img{width:120px;height:112px}
@media(max-width:540px){.login-page .brand img{width:90px;height:84px}}
.brand strong{display:block;font-size:1.15rem;line-height:1.3}
.brand small{display:block;margin-top:4px;font-size:.86rem}
.header-link{font-weight:650;padding:10px 0;flex-shrink:0}
.public-page h1{font-size:clamp(1.8rem,3vw,2.5rem);line-height:1.2;letter-spacing:-.035em;margin:8px 0 16px}
.public-page h2{font-size:1.25rem;line-height:1.3;margin:0 0 12px}
.public-page p{margin:0 0 16px}
.eyebrow{font-weight:750;letter-spacing:.1em;text-transform:uppercase;font-size:.75rem;color:#72508e;margin:0 0 10px!important}
.intro{color:#63576f;max-width:65ch}
.public-card{background:#fff;border:1px solid #efe6f4;border-radius:24px;padding:32px;box-shadow:0 16px 48px #42265a12;min-width:0}
.login-layout{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;margin:30px 0 64px}
.login-intro{padding:8px 16px 8px 0}
.login-intro h1{font-size:clamp(2.15rem,4vw,3.15rem)}
.login-intro .intro{color:#463653}
.welcome-notes{padding:0;list-style:none;margin:28px 0 0}
.welcome-notes li{margin:14px 0;display:flex;gap:10px;align-items:baseline}
.welcome-notes li::before{content:'✓';font-weight:800;color:#4b2e71}
.section-heading{margin-bottom:24px}
.public-page fieldset{border:0;padding:0;margin:0;min-width:0}
.public-page fieldset+fieldset{border-top:1px solid #ece5f0;margin-top:28px;padding-top:24px}
.public-page legend{padding:0;font-size:1.15rem;font-weight:750;margin-bottom:16px}
.fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.field-wide{grid-column:1/-1}
.form-field{min-width:0}
.form-field label{font-weight:650;display:block;margin-bottom:7px}
.optional-label{font-size:.75rem;color:#72637e;font-weight:400;margin-left:8px}
.public-page input:not([type=checkbox]):not([type=hidden]),.public-page select,.public-page textarea{font:inherit;color:#30283f;width:100%;min-width:0;max-width:100%;min-height:48px;padding:11px 13px;border:1px solid #bdb0c9;border-radius:10px;background:#fff}
.public-page input[type=file]{font-size:.88rem!important;padding:8px!important}
.public-page input::file-selector-button{font:inherit;border:0;border-radius:6px;background:#eee6f5;color:#442c67;padding:7px 10px;margin-right:10px;cursor:pointer}
.public-page textarea{resize:vertical;height:120px;min-height:100px;max-height:280px}
.public-page .field-invalid input,.public-page .field-invalid select,.public-page .field-invalid textarea{border-color:#ae3450}
.field-help{font-size:.85rem;color:#675b72;margin:7px 0 0!important}
.field-help ul{padding-left:20px;margin:6px 0}
.field-errors,.errorlist{color:#963047;font-size:.9rem;margin:7px 0 0;padding-left:18px}
.notice{padding:16px 18px;border:1px solid #d9cce7;border-radius:12px;background:#f6f1fb;margin-bottom:22px;overflow-wrap:anywhere}
.notice p:last-child{margin-bottom:0}
.notice.error{background:#fff4f5;border-color:#e5b3c0;color:#802b40}
.notice.success{background:#eef8f3;border-color:#bfdfd0;color:#24543f}
.notice.warning{background:#fff8e9;border-color:#e3cea3;color:#644b22}
.notice ul{margin:8px 0 0;padding-left:20px}
.notice a{color:inherit}
.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:28px}
.public-page .button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 22px;border:1px solid #64418d;border-radius:10px;background:#64418d;color:white;font:inherit;font-weight:650;text-decoration:none;text-align:center;cursor:pointer;line-height:1.4}
.public-page .button:hover{background:#4d2c74;color:white}
.public-page .button.secondary{background:#fff;color:#57367e;border-color:#cfc0df}
.public-page .button.secondary:hover{background:#f5f0fb}
.public-page .button.full{width:100%}
.form-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px;font-size:.92rem}
.form-links a{padding:5px 0}
.signup-prompt{margin-top:24px;padding-top:22px;border-top:1px solid #ece5f0}
.signup-prompt p{margin-bottom:12px}
.password-control{position:relative}
.password-control input{padding-right:100px!important}
.password-toggle{position:absolute;right:5px;top:5px;bottom:5px;border:0;background:#f4eff9;color:#58377e;font:inherit;font-size:.8rem;font-weight:650;border-radius:7px;padding:0 10px;cursor:pointer;min-height:38px}
.steps{display:flex;list-style:none;padding:0;margin:0 0 28px;gap:8px;flex-wrap:wrap}
.steps li{display:flex;align-items:center;gap:7px;padding:7px 11px;background:#ffffff65;border:1px solid #ffffff90;border-radius:9px;font-size:.82rem;color:#493951}
.steps [aria-current=step]{background:#fff;border-color:#755298;color:#57367e;font-weight:750}
.step-number{font-size:.75rem;font-weight:750}
.account-note{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;font-size:.87rem;color:#554262;margin:-8px 0 20px;overflow-wrap:anywhere}
.account-note form{margin:0}
.link-button{font:inherit;min-height:44px;border:0;background:none;color:#57367e;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:5px 0}
.status-badge{display:inline-block;font-size:.82rem;font-weight:700;border-radius:20px;background:#f0e7f8;color:#5b3e7c;padding:6px 12px;margin-bottom:16px}
.detail-box{background:#faf7fc;border:1px solid #eee5f5;border-radius:12px;padding:18px;margin:22px 0;overflow-wrap:anywhere}
.detail-box p:last-child{margin-bottom:0}
.saved-list{margin:8px 0 0;padding-left:20px}
.document-frame{width:100%;height:520px;border:1px solid #d8cde2;border-radius:10px;margin:16px 0}
.consent{display:flex;align-items:flex-start;gap:12px;padding:18px;background:#f7f3fb;border-radius:12px;margin-top:24px;cursor:pointer}
.consent input{width:20px;height:20px;flex:0 0 20px;accent-color:#64418d;margin:3px 0 0}
.public-footer{text-align:center;font-size:.8rem;color:#574367;padding:28px 0}
.skip-link{position:fixed;left:12px;top:-100px;padding:10px;background:white;z-index:10}
.skip-link:focus{top:12px}
@media(max-width:760px){.login-layout{grid-template-columns:1fr;gap:18px;margin:4px 0 16px}.login-intro{padding:0}.login-intro h1{font-size:2rem;margin-bottom:10px}.welcome-notes{display:none}.public-header{padding:20px 0}.public-card{padding:24px}.document-frame{height:400px}}
@media(max-width:540px){.public-shell{width:calc(100% - 24px)}.public-header{gap:8px}.brand{gap:9px!important}.brand img{width:48px;height:48px;border-radius:0}.brand strong{font-size:1rem}.brand small{font-size:.72rem}.header-link{font-size:.84rem}.public-card{padding:22px 18px;border-radius:18px}.fields-grid{grid-template-columns:1fr;gap:18px}.actions{align-items:stretch;flex-direction:column;gap:10px}.actions .button{width:100%}.steps{gap:6px;margin-bottom:20px}.steps li{font-size:.73rem;padding:5px 7px;gap:5px}.account-note{gap:0}.public-page h1{font-size:1.75rem}.document-frame{height:310px}}
