/* Shared look of the password screens (Admin/ResetPassword.aspx, Admin/PasswordRequired.aspx). Tokens come from the ACS
   design system with the same values as fallback; px only, no hard-coded brand colours beyond the status tints. */
:root {
    --pw-accent: var(--acs-accent, #3377FF);
    --pw-accent-dark: var(--acs-accent-darker, #3567D4);
    --pw-accent-subtle: var(--acs-accent-subtle, #E5EEFF);
    --pw-fg: var(--acs-foreground, #020817);
    --pw-muted: var(--acs-muted-foreground, #64748B);
    --pw-border: var(--acs-border, #E2E8F0);
    --pw-danger: var(--acs-danger, #FF3D3D);
    --pw-success: var(--acs-success, #06C170);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--acs-font-sans, 'Mulish', 'Segoe UI', Arial, sans-serif);
    font-size: 14px; color: var(--pw-fg); background: #F1F5F9; min-height: 100vh;
    display: flex; align-items: center; justify-content: center; padding: 24px 16px;
}
.pw-card {
    width: 100%; max-width: 440px; background: #FFFFFF; border-radius: 8px;
    box-shadow: var(--acs-shadow-z8, 0 8px 16px rgba(145, 158, 171, .16)); padding: 32px 28px;
}
.pw-card h1 { font-size: 22px; font-weight: 700; margin: 0 0 6px; letter-spacing: 0; }
.pw-lead { color: var(--pw-muted); margin: 0 0 20px; line-height: 1.5; }
.pw-field { margin-bottom: 14px; }
.pw-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.pw-input-wrap { position: relative; }
.pw-input {
    width: 100%; height: 48px; padding: 0 64px 0 14px; font: inherit; font-size: 15px; color: var(--pw-fg);
    border: 1px solid var(--pw-border); border-radius: 8px; background: #FFFFFF; outline: none;
}
.pw-input:focus { border-color: var(--pw-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.pw-toggle {
    position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 10px; border: 0; background: transparent;
    color: var(--pw-accent); font: inherit; font-weight: 600; cursor: pointer; border-radius: 6px;
}
.pw-toggle:hover { background: var(--pw-accent-subtle); }
.pw-rules { list-style: none; margin: 4px 0 16px; padding: 0; color: var(--pw-muted); }
.pw-rules li { padding: 2px 0 2px 22px; position: relative; }
.pw-rules li:before {
    content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 9999px;
    border: 2px solid var(--pw-border);
}
.pw-rules li.ok { color: var(--pw-fg); }
.pw-rules li.ok:before { background: var(--pw-success); border-color: var(--pw-success); }
.pw-btn {
    display: block; width: 100%; height: 48px; border: 0; border-radius: 9999px; background: var(--pw-accent); color: #FFFFFF;
    font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; line-height: 48px; text-decoration: none;
}
.pw-btn:hover { background: var(--pw-accent-dark); }
.pw-btn:focus-visible { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 2px; }
.pw-alert {
    background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px;
}
.pw-alert-ok { background: #dcfce7; color: #15803d; border-color: #86efac; }
.pw-foot { margin-top: 18px; text-align: center; color: var(--pw-muted); }
.pw-foot a { color: var(--pw-accent); font-weight: 600; text-decoration: none; }
@media (max-width: 640px) { .pw-card { padding: 24px 18px; } .pw-input, .pw-btn { height: 44px; line-height: 44px; } }
.pw-pick { list-style: none; margin: 0 0 16px; padding: 0; }
.pw-pick li { margin: 0 0 8px; position: relative; }
.pw-fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.pw-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pw-pick label { display: block; position: relative; padding: 12px 12px 12px 40px; min-height: 44px; box-sizing: border-box; border: 1px solid var(--pw-border, #d0d5dd); border-radius: 8px; font-weight: 600; cursor: pointer; }
.pw-pick input[type=radio] { position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; margin: 0; z-index: 1; cursor: pointer; }
.pw-pick label:hover { border-color: var(--pw-accent); }
.pw-pick input[type=radio]:checked + label { border-color: var(--pw-accent); background: var(--pw-accent-subtle); }
.pw-pick input[type=radio]:focus-visible + label { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 2px; }
