html,body{margin:0;min-height:100%;font-family:var(--nds-font-family);color:var(--text-display)}
.auth38-body{min-height:100vh;display:flex;flex-direction:column;background:var(--colors-primary-950)}
.auth38-body [hidden]{display:none!important}.auth38-masthead{position:sticky;top:0;z-index:80;background:var(--background-topbar);flex:none}
.auth38-main{--img-overlay-color:rgba(9,42,30,.82);flex:1;display:flex;align-items:center;justify-content:center;padding:36px 16px;background-image:linear-gradient(var(--img-overlay-color),var(--img-overlay-color)),url('../img/login-bg.png');background-size:cover;background-position:center top}
.auth38-wrap{width:100%;max-width:493px;display:flex;flex-direction:column;gap:8px;min-width:0}
.auth38-card{display:flex;flex-direction:column;gap:20px;text-align:center;padding:32px 44px 36px;background:var(--background-card);border:1px solid var(--colors-neutral-100);border-radius:var(--radius-lg);box-shadow:0 20px 24px -4px rgba(16,24,40,.08),0 8px 8px -4px rgba(16,24,40,.03);box-sizing:border-box}
.auth38-card h1{margin:0;font-size:24px;font-weight:600;line-height:1.5;color:var(--text-display)}.auth38-card h2,.auth38-card p{margin:0}.auth38-heading{display:flex;flex-direction:column;gap:4px}.auth38-heading p{font-size:16px;color:var(--text-secondary-paragraph)}
.auth38-logo{width:110px;height:91px;object-fit:contain;margin:auto}.auth38-nic{width:176px;height:76px;object-fit:contain;margin:auto}.auth38-service{display:flex;justify-content:center;align-items:center;gap:12px;font-size:14px!important}.auth38-service img{width:40px;height:38px;object-fit:contain}
.auth38-form{display:flex;flex-direction:column;gap:18px;text-align:start}.auth38-form .nds-form-header{text-align:start}.auth38-password{display:flex;flex-direction:column;gap:8px}.auth38-forgot{font-size:14px;align-self:flex-start;color:var(--text-primary)}
.auth38-card .nds-form-control{min-height:40px}.auth38-card .nds-form-control input{min-width:0}.auth38-card .nds-feedback{text-align:start}.auth38-alert{text-align:start}.auth38-alert .nds-alert-title{font-size:16px}.auth38-alert .nds-alert-description{font-size:14px;line-height:1.7}
.auth38-stores{display:flex;flex-direction:column;gap:12px;align-items:center;margin-top:8px}.auth38-stores p{font-size:14px}.auth38-stores>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.auth38-stores img{height:40px;width:auto;max-width:100%;display:block}
.auth38-switch{display:grid;grid-template-columns:24px 1fr 66px;direction:ltr;align-items:center;gap:12px;min-height:64px;padding:8px 20px;background:var(--background-card);border:1px solid var(--colors-neutral-100);border-radius:var(--radius-lg);color:var(--text-display);text-decoration:none;box-shadow:var(--shadow-md);box-sizing:border-box}.auth38-switch:hover{background:var(--colors-primary-50);text-decoration:none}.auth38-switch span{direction:rtl;text-align:center;font-size:16px;line-height:24px;font-weight:500}.auth38-switch img{width:66px;height:44px;object-fit:contain}.auth38-switch i{direction:ltr}
.auth38-footer{font-size:14px;line-height:20px;color:var(--colors-base-white);text-align:center;margin:12px 0 0}.auth38-number{font-size:60px;font-weight:600;line-height:72px;color:var(--text-primary);display:block}.auth38-wait,.auth38-instructions{display:flex;flex-direction:column;gap:12px;align-items:stretch}.auth38-wait .accountSelect{width:100%}.auth38-note{font-size:14px;text-align:center;color:var(--text-secondary-paragraph)}.auth38-skip{position:fixed;top:-100px}.auth38-skip:focus{top:8px;z-index:100;background:var(--background-card);padding:12px}
@media(max-width:767px){.auth38-main{align-items:flex-start;padding:22px 8px 48px}.auth38-card{padding:28px 22px 32px}}

.auth38-masthead .fs-gov-stamp__clock,.auth38-masthead .fs-gov-stamp__date{white-space:nowrap}.auth38-masthead .fs-stamp-meta{white-space:nowrap;flex-shrink:0}.auth38-form .nds-form-control>.hgi{font-size:20px;color:#6c737f}.auth38-form .nds-btn .hgi{font-size:20px}

@media(max-width:767px){.auth38-main{justify-content:flex-start;align-items:center}}

/* Keep the NDS focus underline; hide clear actions on disabled fields. */
.auth38-form .nds-form-control:has(input:disabled) .nds-clear{display:none!important}
/* Match the full-width NDS input underline, including its one-pixel side borders. */
.auth38-form .nds-form-container:not(.nds-radio-container):not(.nds-check-container) .nds-form-control::before{
 left:auto;inset-inline:0;bottom:0;width:auto;height:2px;margin-inline:-1px;transform:none;
 background-color:var(--form-field-border-pressed);opacity:0;pointer-events:none
}
.auth38-form .nds-form-container .nds-form-control:has(input:not(:disabled):focus)::before{opacity:1}

.auth38-card .auth40-accounts>h2.nds-label{
 margin:0 0 var(--spacing-lg);font-size:var(--typo-text-md-FS);font-weight:var(--font-weight-semibold);
 line-height:var(--typo-text-md-LH);text-align:start
}
.auth40-accounts .nds-radio-group{display:flex;flex-direction:column;gap:var(--spacing-lg);text-align:start}
.auth40-accounts .nds-radio-container{display:flex;align-items:center;gap:var(--spacing-lg);min-height:44px}
.auth40-accounts .nds-radio-container>label{flex:1;min-width:0;padding-block:10px;cursor:pointer;overflow-wrap:anywhere}
.auth40-accounts .nds-radio-container .nds-label{font-size:var(--typo-text-md-FS);line-height:var(--typo-text-md-LH);font-weight:var(--font-weight-medium)}
/* The requested direct input/label structure uses the installed NDS radio tokens. */
.auth40-accounts .nds-radio{appearance:none;position:relative;flex:none;width:20px;height:20px;margin:0;cursor:pointer}
.auth40-accounts .nds-radio::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--background-default);box-shadow:0 0 0 1px var(--controls-border)}
.auth40-accounts .nds-radio:checked::after{background:var(--radio-primary-checked);box-shadow:0 0 0 1px var(--radio-primary-checked);border:4px solid var(--background-default)}
.auth40-accounts .nds-radio:checked:not(:disabled):hover::after{background:var(--radio-primary-hovered);box-shadow:0 0 0 1px var(--radio-primary-hovered)}
.auth40-accounts .nds-radio:focus-visible{outline:2px solid var(--focus-outline);outline-offset:3px;border-radius:50%}
.auth40-accounts .nds-radio:disabled{cursor:default}
.auth40-accounts .nds-radio:disabled::after{box-shadow:0 0 0 1px var(--border-disabled)}
.auth40-accounts .nds-radio:checked:disabled::after{background:var(--controls-disabled)}
.auth40-accounts .nds-radio:disabled+label{color:var(--text-default-disabled);cursor:default}

.auth38-card:has(.auth40-accounts .nds-radio-group) .auth38-stores{display:none}

.auth38-card:has(.auth40-accounts [aria-busy="true"]) #nafath-message-alert[data-status="info"]{display:none}

/* Match the reference approval state without changing request handling. */
.auth104-nafath:has(#nafath-wait:not([hidden]))>.auth38-heading,
.auth104-nafath:has(#nafath-wait:not([hidden]))>.auth38-stores{display:none}
.auth104-nafath #nafath-wait{gap:20px}
.auth104-nafath #nafath-instructions{align-items:center;gap:4px}
.auth104-nafath #nafath-instructions p{font-size:16px;color:var(--text-display)}
.auth104-nafath #nafath-seconds{color:var(--colors-primary-700);font-weight:600}
.auth104-nafath #nafath-accounts:empty{display:none}

.auth104-nafath #nafath-cancel{height:40px;min-height:40px}
