/* Paragon AFS sign-in pages — CWD redesign (Sample A), 7 Oct 2026 */
:root{
  --p:#0b5fa5;--navy:#0b2a4a;--gold:#f0b429;--ink:#334155;--ink-strong:#0b1b2e;--mut:#5b6b7f;
  --line:#d6dee8;--line-hover:#b6c3d3;--field:#fff;--soft:#eef3f9;--page:#fff;--ring:rgba(11,95,165,.15);
  --err:#c81414;--ok:#22c55e;--ok-ink:#15803d;--r:12px;
  --btn:#0b5fa5;--btn-hover:#094d86;--btn-shadow:0 1px 2px rgba(11,42,74,.2),0 6px 16px -6px rgba(11,95,165,.55);
}
/* Shared components — each design sets the tokens and the page layout */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:var(--page);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--p);text-decoration:none;font-weight:600}
a:hover{text-decoration:underline}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
[hidden]{display:none!important}

/* text */
.screen h1{font-size:28px;line-height:1.2;letter-spacing:-.02em;margin:0 0 8px;color:var(--ink-strong)}
.eyebrow{margin:0 0 8px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--p)}
.eyebrow.staff{color:#b45309}
.lead{margin:0 0 24px;color:var(--mut);font-size:16px}
.lead b{color:var(--ink-strong)}
.note{background:var(--soft);border-radius:10px;padding:12px 14px;color:var(--ink);font-size:15px;margin:0 0 20px}
.fine{font-size:13px;color:var(--mut);margin:16px 0 0}
.foot-link{margin:24px 0 0;text-align:center;color:var(--mut);font-size:15px}
.center{text-align:center}
.center .lead{margin-left:auto;margin-right:auto}

/* fields */
form{display:flex;flex-direction:column;gap:18px}
.field{display:flex;flex-direction:column;gap:6px}
.field label,.label-row label{font-weight:600;font-size:15px;color:var(--ink-strong)}
.label-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.label-row a{font-size:14px}
.ctrl{position:relative;display:flex;align-items:center}
.ctrl .ic{position:absolute;left:14px;color:var(--mut);pointer-events:none}
.ctrl input{width:100%;height:52px;font:inherit;font-size:16px;color:var(--ink-strong);padding:0 16px;border:1.5px solid var(--line);border-radius:var(--r);background:var(--field);transition:border-color .15s,box-shadow .15s,background .15s;outline:none}
.ctrl .ic~input{padding-left:46px}
.ctrl input:has(+.pw-toggle){padding-right:72px}
.ctrl input::placeholder{color:#94a3b8}
.ctrl input:hover{border-color:var(--line-hover)}
.ctrl input:focus{border-color:var(--p);box-shadow:0 0 0 4px var(--ring);background:#fff}
.ctrl input[readonly]{background:var(--soft);color:var(--mut)}
.has-err .ctrl input{border-color:var(--err);box-shadow:0 0 0 4px rgba(200,20,20,.1)}
.has-err label{color:var(--err)}
.err{display:flex;align-items:flex-start;gap:7px;margin:0;font-size:14px;line-height:1.4;color:var(--err);font-weight:500}
.err:empty{display:none}
.err::before{content:"";flex:none;width:17px;height:17px;margin-top:1px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23c81414'/%3E%3Cpath d='M12 6.6v7' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.4' r='1.5' fill='white'/%3E%3C/svg%3E") center/contain no-repeat}
.help{margin:0;font-size:13px;color:var(--mut)}
.caps{margin:0;font-size:13px;color:#b45309;font-weight:600}
.pw-toggle{position:absolute;right:6px;height:40px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--p);font:600 14px 'DM Sans',sans-serif;cursor:pointer}
.pw-toggle:hover{background:var(--soft)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:420px){.row2{grid-template-columns:1fr}}

/* password rules */
.rules{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 10px;margin-top:4px}
.meter{height:6px;border-radius:9px;background:var(--soft);overflow:hidden}
.meter i{display:block;height:100%;width:0;border-radius:9px;transition:width .25s,background .25s;background:#ef4444}
.meter i[data-level=ok]{background:var(--gold)}
.meter i[data-level=strong]{background:var(--ok)}
.meter-label{font-size:13px;font-weight:600;color:var(--mut);min-width:48px;text-align:right}
.rules ul{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;padding:0;list-style:none;font-size:13px;color:var(--mut)}
.rules li{display:flex;align-items:center;gap:6px}
.rules li::before{content:"";width:16px;height:16px;border-radius:50%;border:1.5px solid var(--line);transition:.15s}
.rules li.ok{color:var(--ok-ink)}
.rules li.ok::before{border-color:var(--ok);background:var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat}
.match{margin:0;font-size:13px;font-weight:600}
.match.ok{color:var(--ok-ink)}.match.bad{color:#b45309}

/* checkbox */
.check{display:flex;gap:10px;align-items:center;font-size:15px;color:var(--ink);cursor:pointer;margin-top:-4px}
.check input{width:20px;height:20px;accent-color:var(--p);margin:0}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 24px;border-radius:var(--r);border:0;font:700 16px 'DM Sans',sans-serif;cursor:pointer;text-decoration:none!important;transition:transform .05s,background .15s,box-shadow .15s;width:100%;position:relative}
.btn:active{transform:translateY(1px)}
.btn.primary{background:var(--btn);color:#fff;box-shadow:var(--btn-shadow)}
.btn.primary:hover{background:var(--btn-hover)}
.btn.ghost{background:transparent;color:var(--p);border:1.5px solid var(--line);margin-bottom:4px}
.btn.ghost:hover{border-color:var(--p);background:var(--soft)}
.btn:focus-visible,.quick-item:focus-visible,a:focus-visible,.pw-toggle:focus-visible,.linkbtn:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.btn.loading{color:transparent!important;pointer-events:none}
.btn.loading::after{content:"";position:absolute;width:22px;height:22px;border-radius:50%;border:3px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.linkbtn{all:unset;cursor:pointer;color:var(--p);font-weight:600}
.linkbtn:hover{text-decoration:underline}
.linkbtn:disabled{color:var(--mut);cursor:default;text-decoration:none}

/* who chip */
.who{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 8px;border:1.5px solid var(--line);border-radius:999px;margin:4px 0 24px;background:var(--field)}
.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--p);color:#fff;font-weight:700;font-size:14px}
.avatar.alt{background:var(--gold);color:var(--navy)}
.avatar svg{width:16px;height:16px;stroke-width:3}
.who-mail{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--ink-strong);font-size:15px}
.who a{font-size:14px;padding:6px 12px;border-radius:999px}
.who a:hover{background:var(--soft);text-decoration:none}

/* divider + quick actions */
.divider{display:flex;align-items:center;gap:12px;color:var(--mut);font-size:13px;margin:24px 0 16px}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}
.quick{display:grid;gap:10px}
.quick-item{all:unset;box-sizing:border-box;cursor:pointer;display:flex;gap:14px;align-items:center;padding:14px 16px;border:1.5px solid var(--line);border-radius:var(--r);color:var(--ink-strong);transition:.15s;width:100%}
.quick-item:hover{border-color:var(--p);background:var(--soft);text-decoration:none}
.quick-item>svg{color:var(--p);width:22px;height:22px}
.quick-item span{display:flex;flex-direction:column;line-height:1.3}
.quick-item b{font-size:15px}
.quick-item small{font-size:13px;color:var(--mut);font-weight:400}

/* back link + badges */
.back{display:inline-flex;align-items:center;gap:6px;font-size:15px;margin-bottom:24px;color:var(--mut)}
.back svg{width:18px;height:18px}
.back:hover{color:var(--p);text-decoration:none}
.badge{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--soft);color:var(--p);margin-bottom:18px}
.badge svg{width:26px;height:26px}
.badge.big{width:72px;height:72px;border-radius:50%;margin:0 auto 20px}
.badge.big svg{width:34px;height:34px}
.badge.ok{background:#dcfce7;color:#15803d}
.badge.warn{background:#fef3c7;color:#b45309}

/* steps */
.steps{list-style:none;counter-reset:s;padding:0;margin:0 auto 24px;max-width:300px;text-align:left;display:grid;gap:10px}
.steps li{counter-increment:s;display:flex;gap:12px;align-items:center;font-size:15px}
.steps li::before{content:counter(s);width:26px;height:26px;border-radius:50%;background:var(--soft);color:var(--p);font-weight:700;font-size:13px;display:grid;place-items:center;flex:none}

/* alert */
.alert{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:10px;font-size:14px;margin-bottom:20px}
.alert.danger{background:#fdecec;color:#991b1b}
.alert svg{margin-top:1px}

/* services list */
.svc{display:grid;border:1.5px solid var(--line);border-radius:var(--r);overflow:hidden}
.svc a{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;color:var(--ink-strong);border-bottom:1px solid var(--line)}
.svc a:last-child{border-bottom:0}
.svc a:hover{background:var(--soft);text-decoration:none;color:var(--p)}
.svc b{font-weight:600;font-size:15px}
.svc svg{color:var(--mut)}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation-duration:.01s!important}}


.shell{display:grid;grid-template-columns:minmax(380px,44%) 1fr;min-height:100vh}
.brand{position:relative;color:#fff;padding:40px 48px;display:flex;flex-direction:column;overflow:hidden;
  background:linear-gradient(160deg,rgba(11,42,74,.94) 0%,rgba(11,42,74,.86) 45%,rgba(11,95,165,.78) 100%),url(login-image.jpg) center/cover}
.brand::after{content:"";position:absolute;right:-120px;bottom:-120px;width:340px;height:340px;border-radius:50%;border:56px solid rgba(240,180,41,.12)}
.logo-chip{align-self:flex-start;background:#fff;border-radius:14px;padding:10px 16px;box-shadow:0 10px 30px -10px rgba(0,0,0,.4)}
.logo-chip img{display:block;height:58px;width:auto}
.brand-mid{margin:auto 0;max-width:440px;position:relative;z-index:1}
.brand h2{font-size:38px;line-height:1.12;letter-spacing:-.025em;margin:0 0 14px}
.brand h2 em{font-style:normal;color:var(--gold)}
.brand p{color:#c8d6e8;font-size:17px;margin:0 0 28px}
.perks{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.perks li{display:flex;gap:14px;align-items:center;font-weight:500}
.perks i{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);color:var(--gold)}
.brand-foot{position:relative;z-index:1;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:14px;color:#9fb3cc}
.brand-foot a{color:#fff}
body[data-current=admin] .brand{background:linear-gradient(160deg,rgba(17,24,39,.96),rgba(30,41,59,.92)),url(login-image.jpg) center/cover}
body[data-current=admin] .brand h2 em{color:#fbbf24}

.main{display:flex;flex-direction:column;padding:32px 24px}
.main-top{display:flex;justify-content:flex-end;align-items:center;gap:8px;font-size:14px;color:var(--mut)}
.main-top .m-logo{display:none;margin-right:auto}
.main-top .m-logo img{height:38px;display:block}
.help-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;color:var(--ink-strong)}
.help-pill svg{width:16px;height:16px;color:var(--p)}
.help-pill:hover{border-color:var(--p);text-decoration:none}
.form-wrap{width:100%;max-width:440px;margin:auto;padding:40px 0}
.screen{animation:in .25s ease}
@keyframes in{from{opacity:0;transform:translateY(6px)}}
.copy{text-align:center;font-size:13px;color:var(--mut);margin:0}
.secure{display:flex;justify-content:center;align-items:center;gap:6px;font-size:13px;color:var(--mut);margin:0 0 6px}
.secure svg{width:14px;height:14px;color:var(--ok-ink)}

@media (max-width:900px){
  .shell{grid-template-columns:1fr}
  .brand{padding:16px 16px 18px;min-height:0}
  .brand .logo-chip,.brand .perks,.brand-foot,.brand p{display:none}
  .brand-mid{margin:0}
  .brand h2{font-size:22px;margin:0}
  .main{padding:16px}
  .main-top .m-logo{display:block}
  .form-wrap{padding:24px 0 32px}
  .screen h1{font-size:24px}
}

/* live additions */
.alert.success{background:#dcfce7;color:#14532d}
.alert.info{background:#eef3f9;color:#0b2a4a}
.alert a{color:inherit;text-decoration:underline}
.form-alert:empty{display:none}
.form-alert .alert{margin:0}

/* 7 Oct: logo on a black background (panel stays navy) + shield icon before "Secure client portal" */
.logo-chip{background:#000 !important;box-shadow:0 10px 30px -10px rgba(0,0,0,.6)}
.main-top .m-logo{background:#000;border-radius:10px;padding:6px 10px}
.eyebrow.shield{display:flex;align-items:center;gap:8px}
.eyebrow.shield svg{width:22px;height:22px;flex:none;stroke:none}

/* 7 Oct issues 3: phone = logo with no background; "Need help?" line 1, number line 2 (desktop keeps black chip) */
@media (max-width:900px){
  .main-top .m-logo{background:none;padding:0;border-radius:0}
  .help-pill{border-radius:14px;padding:6px 12px;line-height:1.25}
  .help-pill .hp-txt{display:flex;flex-direction:column}
  .help-pill .hp-q{font-size:12px;color:var(--mut)}
  .help-pill .hp-n{font-weight:600;white-space:nowrap}
}

/* 13 Oct: error ICON (circle + "!") on form alerts too; wrapped lines line up with the text */
.alert.danger::before{content:"";flex:none;width:18px;height:18px;margin-top:1px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23c81414'/%3E%3Cpath d='M12 6.6v7' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.4' r='1.5' fill='white'/%3E%3C/svg%3E") center/contain no-repeat}

/* 13 Oct: "Check your inbox" + "Confirm your email" redesign */
.sent-badge{position:relative;width:76px;margin:0 auto 18px}
.sent-badge .badge.big{margin:0;width:76px;height:76px;background:linear-gradient(145deg,#e6f0fa,#d3e4f5);box-shadow:0 0 0 8px rgba(11,95,165,.06)}
.sent-tick{position:absolute;right:-4px;bottom:-2px;width:28px;height:28px;border-radius:50%;background:var(--ok);color:#fff;display:grid;place-items:center;border:3px solid #fff}
.sent-tick svg{width:14px;height:14px;stroke-width:3.5}
[data-screen=sent] .lead,[data-screen=verify-sent] .lead{margin-bottom:10px}
.mail-card{display:flex;align-items:center;gap:10px;max-width:100%;margin:0 auto 22px;padding:10px 14px;border:1.5px solid var(--line);border-radius:999px;background:#fff;text-align:left}
.mail-card .mail-ic{width:30px;height:30px;border-radius:50%;background:var(--soft);color:var(--p);display:grid;place-items:center;flex:none}
.mail-card .mail-ic svg{width:16px;height:16px}
.mail-card b{flex:1;min-width:0;overflow-wrap:break-word;font-size:16px;line-height:1.35;color:var(--ink-strong)}
.mail-card a{font-size:14px;padding:4px 10px;border-radius:999px;flex:none}
.mail-card a:hover{background:var(--soft);text-decoration:none}
.steps-card{background:var(--soft);border-radius:14px;padding:16px 18px;margin:0 0 22px;text-align:left}
.steps-title{margin:0 0 12px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut)}
.steps-card .steps{max-width:none;margin:0;gap:0}
.steps-card .steps li{position:relative;align-items:flex-start;padding-bottom:14px;color:var(--ink-strong);line-height:1.4}
.steps-card .steps li:last-child{padding-bottom:0}
.steps-card .steps li::before{background:#fff;border:1.5px solid #c9d8ea;margin-top:-2px}
.steps-card .steps li:not(:last-child)::after{content:"";position:absolute;left:12.5px;top:26px;bottom:2px;width:1.5px;background:#c9d8ea}
.steps li>span{flex:1}
.actions{display:grid;gap:10px}
.actions .btn{margin:0}
.actions .btn svg{width:18px;height:18px}
.resend-box{margin:20px 0 0;padding-top:18px;border-top:1px solid var(--line);font-size:14px;color:var(--mut)}
.resend-box p{margin:0 0 6px}
.resend-box p:last-child{margin:0}
.resend-box b{color:var(--ink)}
.stepbar{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 22px;font-size:13px;font-weight:600;color:var(--mut)}
.stepbar span{display:flex;align-items:center;gap:6px;white-space:nowrap}
.stepbar i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:700}
.stepbar .done{color:var(--ok-ink)}
.stepbar .done i{background:var(--ok);color:#fff}
.stepbar .done svg{width:12px;height:12px;stroke-width:3.5}
.stepbar .now{color:var(--p)}
.stepbar .now i{background:var(--p);color:#fff}
.stepbar .line{flex:0 1 40px;height:2px;background:var(--ok);border-radius:2px}
@media (max-width:900px){.sent-badge,.sent-badge .badge.big{width:68px;height:68px}}
/* CWD 15 Oct 2026: Personal / Corporation service tabs (sample 1) */
.svc-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 8px;border-radius:999px;background:rgba(240,180,41,.16);border:1px solid rgba(240,180,41,.45);color:#fde68a;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin:0 0 18px}
.svc-chip i{width:24px;height:24px;border-radius:50%;background:var(--gold);color:#0b2a4a;display:grid;place-items:center}
.svc-chip svg{width:14px;height:14px;stroke-width:2.4}
.tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:14px;background:var(--soft);border:1px solid var(--line);margin:0 0 28px}
.tabs a{display:flex;align-items:center;justify-content:center;gap:8px;height:44px;border-radius:10px;color:var(--mut);font-size:15px;font-weight:600}
.tabs a:hover{text-decoration:none;color:var(--ink-strong)}
.tabs a.on{background:#fff;color:var(--p);box-shadow:0 1px 2px rgba(11,42,74,.12),0 4px 12px -4px rgba(11,42,74,.18)}
.tabs svg{width:18px;height:18px}
.tabs-hint{margin:-18px 0 24px;font-size:13px;color:var(--mut);text-align:center}
.tabs-note{display:flex;gap:10px;align-items:flex-start;background:var(--soft);border-radius:10px;padding:12px 14px;margin:0 0 22px;font-size:14.5px;color:var(--ink)}
.tabs-note svg{color:var(--p);margin-top:1px;flex:none;width:20px;height:20px}
@media (max-width:900px){.brand .svc-chip{margin:0 0 8px;font-size:11.5px}}
@media (min-width:901px){.brand-mid.brand-up{margin:72px 0 auto}}
