/* Phone sign-in: shared brand, real service states, no prototype controls. */
.zpa-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); width: 100%; max-width: var(--home-content-width, 1440px); margin: 36px auto; border: 1px solid #dce1e8; border-radius: 8px; overflow: hidden; background: #fff; color: #17233c; }
.zpa-auth-intro { padding: 40px; background: #3b53a4; color: #fff; min-width: 0; }
.zpa-auth-intro h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.45; font-weight: 500; margin: 0 0 16px; letter-spacing: -.02em; }
.zpa-auth-intro > p { max-width: 34ch; color: #edf1ff; line-height: 1.85; margin-bottom: 28px; }
.zpa-auth-roles { margin: 0; }
.zpa-auth-roles > div { margin: 0; padding: 16px 0; border-top: 1px solid #8394ca; }
.zpa-auth-roles dt { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.zpa-auth-roles dd { font-size: 14px; color: #edf1ff; line-height: 1.75; margin: 0; max-width: 40ch; }
.zpa-auth-intro .zpa-auth-caption { margin: 24px 0 0; color: #edf1ff; font-size: 13px; line-height: 1.75; }
.zpa-auth-panel { padding: 36px 32px; min-width: 0; align-self: start; }
.zpa-auth-panel h1 { font-size: 28px; font-weight: 500; margin: 0 0 12px; line-height: 1.45; }
.zpa-auth-panel > p { font-size: 14px; line-height: 1.75; color: #59657a; margin-bottom: 24px; }
.zpa-auth-panel .field, .zpa-auth-panel .zpa-auth-field { display: flex; flex-direction: column; margin-bottom: 20px; gap: 8px; }
.zpa-auth-panel label { display: block; font-size: 16px; font-weight: 500; }
.zpa-auth-panel input:not([type=checkbox]):not([type=radio]) { display: block; width: 100%; min-width: 0; min-height: 48px; border: 1px solid #7c879b; border-radius: 6px; font-size: 16px; background: #fff; padding: 11px 12px; }
.zpa-auth-panel input[aria-invalid=true] { border-color: #b42332 !important; }
.zpa-auth-panel small, .zpa-auth-panel .help { font-size: 13px; line-height: 1.65; color: #59657a; }
.zpa-auth-panel .zpa-auth-help { margin: 0; font-size: 13px; line-height: 1.65; color: #59657a; }
.zpa-auth-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; margin-top: 20px; border-top: 1px solid #dce1e8; font-size: 14px; }
.zpa-auth-links a { display: inline-flex; min-height: 44px; align-items: center; }
.zpa-auth-panel [id$="-error"] { margin: 0; color: #b42332; font-size: 13px; line-height: 1.65; }
.zpa-auth-panel [id$="-error"]:empty { display: none; }
.zpa-auth-panel .code-field, .zpa-auth-panel .zpa-auth-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.zpa-auth-panel [data-auth-send] { min-height: 48px; padding: 10px 14px; border: 1px solid #3b53a4; border-radius: 6px; background: #eef2fc; color: #30458c; font-size: 14px; line-height: 1.5; white-space: nowrap; }
.zpa-auth-panel [data-auth-send]:hover:not(:disabled), .zpa-auth-panel [data-auth-send]:active:not(:disabled) { background: #e0e7fa; color: #263c86; }
.zpa-auth-panel [data-auth-submit] { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 11px 16px; border: 1px solid #3b53a4; border-radius: 6px; background: #3b53a4; color: #fff; font-size: 16px; line-height: 1.5; }
.zpa-auth-panel [data-auth-submit]:hover:not(:disabled) { background: #30458c; color: #fff; border-color: #30458c; }
.zpa-auth-panel [data-auth-submit]:active:not(:disabled) { background: #263c86; color: #fff; border-color: #263c86; }
.zpa-auth-panel button:disabled { cursor: not-allowed; opacity: .65; }
.zpa-auth-panel :is(input, button, a):focus-visible { outline: 2px solid #3b53a4; outline-offset: 3px; }
.zpa-auth-panel [data-auth-status] { min-height: 24px; margin: 16px 0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; color: #59657a; }
.zpa-auth-panel [data-auth-status][data-state=error] { color: #b42332; }
.zpa-auth-panel [data-auth-status][data-state=success] { color: #176b46; }
.zpa-auth-panel [data-auth-service-hint] { margin: 16px 0; padding: 12px 14px; border: 1px solid #dce1e8; background: #f4f6f9; border-radius: 6px; font-size: 13px; line-height: 1.7; color: #59657a; }
@media (max-width: 800px) {
    .zpa-auth-intro { display: none; }
    .zpa-auth { grid-template-columns: minmax(0, 1fr); margin-block: 24px; }
    .zpa-auth-intro { display: none; }
    .zpa-auth-intro h2 { font-size: 26px; margin-bottom: 8px; }
    .zpa-auth-intro > p { max-width: none; margin-bottom: 12px; font-size: 14px; }
    .zpa-auth-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }


    .zpa-auth-roles > div { flex: 1 1 180px; padding: 10px 0 0; }
    .zpa-auth-roles dt { font-size: 14px; }
    .zpa-auth-roles dd { font-size: 13px; }
    .zpa-auth-intro .zpa-auth-caption { margin-top: 12px; font-size: 12px; }
    .zpa-auth-panel { padding: 28px 24px; }
}

/* Caper's local image challenge shares the frontend login form rhythm. */
.zpa-auth .zpa-auth-captcha h2 { font-size: 14px; font-weight: 600; line-height: 1.6; margin: 0 0 8px; }
.zpa-auth .caper-captcha-field { margin: 0; }
.zpa-auth .caper-captcha-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.zpa-auth .caper-captcha-wrapper { display: flex; align-items: stretch; gap: 12px; }
.zpa-auth .caper-captcha-wrapper .caper-captcha-input { flex: 1; min-width: 0; width: 100%; }
.zpa-auth .caper-captcha-image-wrap { display: flex; flex: 0 0 150px; }
.zpa-auth .caper-captcha-refresh { display: flex; align-items: center; justify-content: center; width: 150px; min-height: 48px; padding: 0; border: 1px solid #7c879b; background: #fff; border-radius: 6px; cursor: pointer; }
.zpa-auth .caper-captcha-refresh img { display: block; width: 148px; height: auto; max-height: 60px; object-fit: contain; }
.zpa-auth .caper-captcha-refresh:focus-visible { outline: 2px solid #3b53a4; outline-offset: 3px; }
.zpa-auth .caper-captcha-status { display: block; font-size: 14px; line-height: 1.6; }
@media (max-width: 480px) { .zpa-auth .caper-captcha-image-wrap { flex-basis: 120px; } .zpa-auth .caper-captcha-refresh { width: 120px; } .zpa-auth .caper-captcha-refresh img { width: 118px; } }
@media (max-width: 480px) {
    .zpa-auth { margin-block: 16px; }
    .zpa-auth-intro { padding: 20px; }
    .zpa-auth-intro h2 { font-size: 24px; }
    .zpa-auth-roles > div { flex-basis: 100%; padding-top: 8px; }
    .zpa-auth-roles { gap: 6px 12px; }
    .zpa-auth-roles dd { max-width: none; }
    .zpa-auth-panel { padding: 24px 20px; }
    .zpa-auth-panel h1 { font-size: 26px; }
    .zpa-auth-panel .code-field, .zpa-auth-panel .zpa-auth-code-row { gap: 8px; }
    .zpa-auth-panel [data-auth-send] { padding-inline: 10px; font-size: 13px; }
}


