@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --navy: #0c367f;
    --text: #425a82;
    --blue: #143f78;
    --link: #005bd6;
    --line: #c9d3e4;
}
.validation-message{color:#b82a4d;font-size:12px;line-height:1.8;margin-bottom:15px}.validation-summary-valid{display:none}.validation-message ul{padding-left:18px;margin:0}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: #f8f9fc; font-family: Vazirmatn, 'Segoe UI', sans-serif; font-size: 14px; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #55a6e4; outline-offset: 4px; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.portal-shell { display: grid; grid-template-columns: 34.2% 65.8%; min-height: 100svh; }
.login-panel { display: flex; flex-direction: column; padding: clamp(42px,7.6vh,78px) 10% clamp(38px,10vh,102px) 12.4%; background: linear-gradient(120deg, #fbfcfe, #f7f8fc); }
.brand { display: inline-flex; align-items: center; gap: 20px; align-self: flex-start; color: var(--navy); font-weight: 750; font-size: 34px; line-height: 1.2; letter-spacing: -.6px; }
.brand-mark { width: 60px; height: 63px; flex-shrink: 0; }
.brand small { display: block; margin-top: 3px; font-size: 16px; font-weight: 400; letter-spacing: 0; color: #50648b; }
.login-content { margin-top: clamp(46px,7vh,74px); }
.welcome-copy h1 { font-size: 34px; font-weight: 750; line-height: 1.25; letter-spacing: -.6px; color: var(--navy); margin: 0 0 9px; }
.welcome-copy p { font-size: 15px; line-height: 1.65; margin: 0; }
#login-form { margin-top: 43px; }
.field-group { margin-bottom: 21px; }
.field-group label { display: block; margin-bottom: 7px; font-size: 14px; color: #273f6c; font-weight: 550; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; height: 49px; border: 1px solid var(--line); border-radius: 8px; background: transparent; padding: 0 47px 0 52px; color: #233e65; font-size: 13px; transition: border-color .15s, box-shadow .15s; }
.input-wrap input::placeholder { color: #7183a5; opacity: 1; }
.input-wrap input:focus { outline: none; border-color: #357bd0; box-shadow: 0 0 0 3px #357bd018; }
.field-icon { position: absolute; top: 14px; left: 17px; width: 20px; height: 20px; pointer-events: none; }
.password-toggle { position: absolute; right: 6px; top: 4px; height: 41px; width: 36px; border: none; border-radius: 5px; color: #425b83; background: transparent; display: grid; place-items: center; }
.password-toggle .icon { width: 19px; height: 19px; }
.password-toggle:hover { background: #eaf0f8; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 2px 0 30px; font-size: 13px; }
.remember-option { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; white-space: nowrap; }
.remember-option input { width: 19px; height: 19px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.link-button { border: 0; padding: 0; background: transparent; color: var(--link); font-size: inherit; }
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.button { min-height: 51px; width: 100%; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 15px; font-weight: 600; padding: 12px 15px; transition: background .15s, box-shadow .15s; }
.button-primary { background: #143f78; color: #fff; }
.button-primary:hover { background: #0c3266; box-shadow: 0 4px 12px #173b6c1a; }
.button-outline { color: #073c92; border-color: #2e64ad; background: transparent; }
.button-outline:hover { background: #eaf0f9; }
.button .icon { width: 23px; height: 23px; }
.divider { display: flex; align-items: center; gap: 17px; margin: 29px 0 24px; color: #5c7097; font-size: 13px; }
.divider::before, .divider::after { content: ''; height: 1px; background: #d4ddeb; flex: 1; }
.support-line { margin: auto 0 0; padding-top: 65px; font-size: 12px; line-height: 1.8; }
.platform-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(85px,16.8vh,172px) 7.6% clamp(60px,10.1vh,104px); min-height: 100svh; color: #f1f6ff; background: #173e6d url('../images/medical-background.png') center center / cover no-repeat; }
.platform-panel::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #12346766, #1639660d 80%), linear-gradient(0deg, #14345a33, transparent 55%); z-index: -1; }
.platform-copy { max-width: 700px; }
.platform-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; font-size: 13px; letter-spacing: 1.1px; color: #d1e4ff; margin: 0 0 22px; }
.eyebrow-dot { font-size: 16px; }
.platform-copy h2 { font-size: clamp(38px,3.4vw,54px); font-weight: 700; letter-spacing: -.6px; line-height: 1.25; margin: 0 0 26px; }
.platform-copy h3 { font-size: 23px; font-weight: 550; line-height: 1.35; letter-spacing: -.3px; margin: 0 0 25px; }
.platform-description { max-width: 455px; margin: 0; font-size: 15px; line-height: 1.65; color: #f4f7fd; }
.platform-benefits { list-style: none; display: flex; padding: 0; margin: 70px 0 0; max-width: 540px; }
.platform-benefits li { flex: 1; padding: 0 28px; border-left: 1px solid #c3d9f33d; font-size: 14px; line-height: 1.35; color: #d7e9ff; }
.platform-benefits li:first-child { border-left: 0; padding-left: 0; }
.platform-benefits .icon { display: block; width: 32px; height: 32px; margin-bottom: 11px; }
.skip-link { position: absolute; left: 12px; top: -100px; padding: 12px; background: var(--blue); color: #fff; z-index: 10; }
.skip-link:focus { top: 12px; }
dialog { width: min(460px,calc(100% - 36px)); border: 1px solid var(--line); border-radius: 12px; padding: 35px; color: var(--text); background: #fafbff; box-shadow: 0 20px 100px #0b234d33; }
dialog::backdrop { background: #112d565c; backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 8px; right: 13px; border: 0; background: transparent; color: var(--text); font-size: 28px; }
.dialog-eyebrow { color: #4874a2; font-size: 10px; letter-spacing: 1.4px; display: block; margin-bottom: 18px; }
dialog h2 { font-size: 25px; color: var(--navy); margin: 0; }
dialog p { font-size: 14px; line-height: 1.8; margin: 19px 0 24px; }
.noscript-note { font-size: 12px; margin-top: 15px; }

@media (min-width: 1750px) {
    .login-panel { padding-left: 15%; padding-right: 15%; }
    .login-content { margin-top: 85px; }
    .platform-panel { padding-left: 9%; }
}
@media (max-width: 1200px) {
    .portal-shell { grid-template-columns: 39% 61%; }
    .login-panel { padding-left: 9%; padding-right: 9%; }
    .brand { font-size: 29px; gap: 15px; }
    .brand-mark { width: 50px; height: 55px; }
    .welcome-copy h1 { font-size: 30px; }
    .platform-panel { padding-left: 8%; padding-right: 6%; }
    .platform-eyebrow { font-size: 10px; gap: 10px; }
    .platform-copy h3 { font-size: 20px; }
    .platform-benefits li { padding-inline: 18px; font-size: 12px; }
    .desktop-break { display: none; }
}
@media (max-width: 850px) {
    .portal-shell { grid-template-columns: 48% 52%; }
    .login-panel { padding: 42px 8% 35px; }
    .brand { font-size: 27px; }
    .brand small { font-size: 14px; }
    .login-content { margin-top: 48px; }
    .welcome-copy p { font-size: 14px; }
    .login-options { font-size: 11px; gap: 8px; }
    .remember-option { gap: 7px; }
    .platform-panel { padding: 110px 9% 65px; }
    .platform-copy h2 { font-size: 36px; }
    .platform-eyebrow { line-height: 1.8; max-width: 220px; }
    .platform-eyebrow span:last-child { flex-basis: 100%; }
    .platform-eyebrow .eyebrow-dot:nth-last-child(2) { display: none; }
    .platform-copy h3 { font-size: 19px; }
    .platform-description { font-size: 14px; }
    .platform-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 23px 0; }
    .platform-benefits li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
    .portal-shell { display: flex; flex-direction: column; }
    .login-panel { min-height: 100svh; width: 100%; padding: 36px max(26px,calc((100vw - 420px)/2)) 26px; }
    .brand { font-size: 30px; }
    .brand-mark { width: 50px; }
    .login-content { margin-top: 48px; }
    .welcome-copy h1 { font-size: 31px; }
    #login-form { margin-top: 32px; }
    .login-options { font-size: 13px; margin-bottom: 26px; }
    .remember-option { gap: 10px; }
    .input-wrap input { height: 51px; }
    .field-icon { top: 15px; }
    .password-toggle { top: 5px; }
    .support-line { padding-top: 44px; }
    .platform-panel { min-height: 660px; padding: 55px 30px 45px; background-position: 60% center; }
    .platform-copy h2 { font-size: 38px; }
    .platform-eyebrow { max-width: none; font-size: 9px; gap: 8px; }
    .platform-eyebrow span:last-child { flex-basis: auto; }
    .platform-eyebrow .eyebrow-dot:nth-last-child(2) { display: inline; }
    .platform-copy h3 { font-size: 20px; max-width: 370px; }
    .platform-description { max-width: 370px; }
    .platform-benefits { display: flex; gap: 0; margin-top: 80px; }
    .platform-benefits li { padding-inline: 13px; font-size: 11px; }
    .platform-benefits li:nth-child(3) { border-left: 1px solid #c3d9f33d; padding-left: 13px; }
    .platform-benefits .icon { width: 28px; height: 28px; }
}
@media (max-width: 360px) {
    .login-panel { padding-inline: 22px; }
    .login-options { font-size: 11px; }
    .platform-panel { padding-inline: 23px; }
    .platform-eyebrow { font-size: 8px; gap: 5px; }
    .platform-benefits li { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* The landing screen fits the viewport; compact spacing at shorter heights. */
html,body{height:100%;overflow:hidden}.portal-shell{height:100dvh;min-height:0;overflow:hidden}.login-panel,.platform-panel{min-height:0}.login-panel{padding-top:clamp(20px,6dvh,65px);padding-bottom:clamp(16px,4dvh,40px)}.login-content{margin-top:clamp(18px,5dvh,65px)}#login-form{margin-top:clamp(16px,3dvh,36px)}.support-line{padding-top:14px}.platform-panel{padding-top:clamp(45px,15dvh,160px);padding-bottom:clamp(25px,7dvh,80px)}.platform-benefits{margin-top:auto;padding-top:25px}
@media(max-height:780px){.brand{font-size:28px;gap:13px}.brand-mark{width:48px;height:50px}.brand small{font-size:13px}.welcome-copy h1{font-size:28px}.welcome-copy p{font-size:13px}.field-group{margin-bottom:15px}.login-options{margin-bottom:19px}.divider{margin:18px 0}.button{min-height:44px;padding-block:9px}.platform-copy h2{font-size:40px;margin-bottom:20px}.platform-copy h3{font-size:20px;margin-bottom:18px}.platform-description{font-size:13px}}
@media(max-width:640px){.platform-panel{display:none}.portal-shell{display:flex}.login-panel{height:100dvh;padding-top:clamp(18px,4dvh,35px);padding-bottom:16px}.login-content{margin-top:clamp(16px,4dvh,40px)}.support-line{padding-top:12px}}
@media(max-height:620px){.login-panel{padding-top:14px;padding-bottom:12px}.brand{font-size:23px}.brand-mark{width:38px;height:40px}.brand small{font-size:11px}.login-content{margin-top:14px}.welcome-copy h1{font-size:24px;margin-bottom:5px}.welcome-copy p{font-size:12px;line-height:1.45}#login-form{margin-top:14px}.field-group{margin-bottom:10px}.field-group label{font-size:12px;margin-bottom:4px}.input-wrap input{height:39px;font-size:12px}.field-icon{top:10px}.password-toggle{height:31px;top:4px}.login-options{margin-bottom:13px;font-size:11px}.button{min-height:38px;padding-block:7px;font-size:13px}.divider{margin:11px 0}.support-line{font-size:10px;padding-top:8px}.platform-panel{padding-top:35px}.platform-copy h2{font-size:32px}.platform-copy h3{font-size:17px}.platform-benefits li{font-size:11px;padding-inline:12px}}
@media(max-height:430px){.brand-mark,.brand small,.welcome-copy p,.platform-description,.support-line{display:none}.brand{font-size:20px}.login-content{margin-top:8px}.welcome-copy h1{font-size:20px}.login-panel{padding-top:9px;padding-bottom:9px}#login-form{margin-top:8px}.field-group{margin-bottom:7px}.login-options{margin-bottom:8px}.divider{margin:7px 0}.input-wrap input{height:34px}.field-icon{top:7px}.password-toggle{top:2px;height:30px}.platform-benefits{padding-top:10px}}
.hoa-brand{display:block;align-self:flex-start;width:100%;max-width:420px;flex-shrink:0}.hoa-logo{display:block;width:100%;height:clamp(125px,22dvh,225px);object-fit:contain;object-position:left center}.login-panel:has(.hoa-brand){padding-top:clamp(14px,3dvh,40px)}.login-panel:has(.hoa-brand) .login-content{margin-top:clamp(12px,2dvh,24px)}@media(max-height:620px){.hoa-logo{height:105px}.login-panel:has(.hoa-brand) .login-content{margin-top:10px}}@media(max-height:430px){.hoa-logo{height:55px}.login-panel:has(.hoa-brand){padding-top:9px}.login-panel:has(.hoa-brand) .login-content{margin-top:7px}}
.login-panel:has(.hoa-brand){padding-top:clamp(6px,1dvh,12px);padding-bottom:12px}.login-panel:has(.hoa-brand) .login-content{margin-top:6px}.login-panel:has(.hoa-brand) #login-form{margin-top:clamp(10px,2dvh,22px)}.login-panel:has(.hoa-brand) .divider{margin:clamp(8px,1.5dvh,16px) 0}.login-panel:has(.hoa-brand) .support-line{padding-top:8px}
.hoa-logo{height:clamp(145px,25dvh,255px)}@media(max-height:620px){.hoa-logo{height:118px}}@media(max-height:430px){.hoa-logo{height:65px}}
.login-panel .welcome-copy{padding-top:clamp(28px,4dvh,44px)}@media(max-height:780px){.login-panel .field-group{margin-bottom:10px}.login-panel .login-options{margin-bottom:14px}}@media(max-height:620px){.login-panel .welcome-copy{padding-top:22px}}@media(max-height:430px){.login-panel .welcome-copy{padding-top:0}}
