/* Shared sign-in and credential management for portal and workshop app. */
.nwp-passkeys { max-width: 680px; margin: 20px auto 0; text-align: left; color: #1a293d; font-size: 15px; line-height: 1.5; }
.nwp-passkeys *, .nwp-passkeys *::before, .nwp-passkeys *::after { box-sizing: border-box; }
.nwp-passkeys [hidden] { display: none !important; }
.nwp-passkeys h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 12px; color:var(--nwp-primary-ink, #1e4080); }
.nwp-passkeys p { margin: 10px 0 18px; }
.nwp-passkeys label { display: block; margin: 0 0 16px; font-weight: 600; }
.nwp-passkeys input { display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 12px; border: 1px solid #bdc9d9; border-radius: 7px; font: inherit; font-size: 16px; font-weight: 400; color: #1a293d; background: #fff; }
.nwp-passkeys button { font: inherit; cursor: pointer; }
.nwp-passkeys :is(button, input, summary):focus-visible { outline: 3px solid #397bc3; outline-offset: 3px; }
.nwp-pk-button { display: block; width: 100%; min-height: 46px; padding: 11px 16px; margin: 10px 0; border: 1px solid #1e4080; border-radius: 7px; color: #fff; background:var(--nwp-primary, #1e4080); font-weight: 600 !important; line-height: 1.4; }
.nwp-pk-button:hover { background: #173365; }
.nwp-pk-secondary { color:var(--nwp-primary-ink, #1e4080); background: #fff; border-color: #bdc9d9; }
.nwp-pk-secondary:hover { background: #eef3fa; }
.nwp-passkeys button:disabled { opacity: .6; cursor: wait; }
.nwp-pk-link { display: block; padding: 9px 4px; margin: 0 auto; color:var(--nwp-primary-ink, #1e4080); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.nwp-pk-help { font-size: 13px; color: #536278; }
.nwp-pk-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; color: #536278; font-size: 13px; }
.nwp-pk-divider::before, .nwp-pk-divider::after { content: ''; height: 1px; background: #dde3ef; flex: 1; }
.nwp-pk-details { margin-top: 24px; padding-top: 16px; border-top: 1px solid #dde3ef; }
.nwp-pk-details summary { cursor: pointer; padding: 5px 0; color: #536278; }
.nwp-pk-message { padding: 12px 14px; margin-bottom: 18px; border-left: 3px solid #1e4080; background: #eef3fa; color: #1a293d; overflow-wrap: anywhere; }
.nwp-pk-message[data-error="1"] { color: #9b2525; border-color: #b42318; background: #fff1ef; }
.nwp-pk-list { padding: 0; margin: 24px 0; list-style: none; }
.nwp-pk-list li { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid #dde3ef; }
.nwp-pk-list strong, .nwp-pk-list small { display: block; overflow-wrap: anywhere; }
.nwp-pk-list small { color: #536278; margin-top: 3px; }
.nwp-pk-list button { flex: 0 0 auto; width: auto; }
.nwp-pk-code-text { font-size: 14px; padding: 16px; background: #f3f6fa; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; line-height: 1.8; border-radius: 7px; }
.auth-card { max-width: 460px; padding: 32px; border-radius: 12px; box-shadow: 0 8px 32px rgba(24,48,82,.12); }
.nwp-login-logo { max-width: 220px; max-height: 72px; object-fit: contain; margin-bottom: 18px; }
.auth-card .auth-title { font-size: 1.75rem; }
.nwp-login-company { color: #536278; margin-top: 6px; }
.login-container.nwp-login-card { max-width: 460px; width: 100%; margin: 20px auto; padding: 28px; background: #fff; border: 1px solid #dde3ef; border-radius: 12px; }
.nwp-login-card .nwp-passkeys { width: 100%; }
@media (max-width: 480px) { .auth-card, .login-container.nwp-login-card { padding: 24px 20px; } .nwp-pk-list li { align-items: flex-start; } }

.auth-body { height: auto; min-height: 100vh; }
.nwp-device-qr { width: 256px; max-width: 100%; margin: 18px auto; padding: 16px; background: #fff; }
.nwp-device-qr img, .nwp-device-qr canvas { max-width: 100%; height: auto; }
.nwp-device-qr:empty { display: none; }
.nwp-device-code { display: block; padding: 16px; text-align: center; font-size: 2rem; letter-spacing: .15em; background: #eef3fa; border-radius: 8px; }
.nwp-device-login { text-align: center; text-decoration: none; }
