/* NEXORA-PASSWORD-UI-02: shared password controls and scoped account page. */
html body .nx-password-field {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    line-height: normal;
}
html body .nx-password-field > input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding-right: 48px !important;
}
/* Explicitly override general form-button rules, including login margins. */
html body .nx-password-field > button.nx-password-toggle {
    position: absolute !important;
    inset: auto 4px auto auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: calc(100% - 4px) !important;
    min-height: 0 !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #52648a !important;
    box-shadow: none !important;
    text-shadow: none !important;
    line-height: 1 !important;
    opacity: 1 !important;
    appearance: none;
    cursor: pointer;
    z-index: 1;
}
html body .nx-password-field > button.nx-password-toggle::before,
html body .nx-password-field > button.nx-password-toggle::after {
    content: none !important;
}
html body .nx-password-field > button.nx-password-toggle > svg {
    display: block !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8;
    pointer-events: none;
}
html body .nx-password-field > button.nx-password-toggle > svg * {
    fill: none !important;
    stroke: currentColor !important;
}
html body .nx-password-field > button.nx-password-toggle:hover,
html body .nx-password-field > button.nx-password-toggle[aria-pressed="true"] {
    background: #eee9ff !important;
    color: #6037d4 !important;
}
html body .nx-password-field > button.nx-password-toggle:focus-visible {
    outline: 2px solid #6744df !important;
    outline-offset: -2px !important;
}
html body .nx-password-field > input::-ms-reveal,
html body .nx-password-field > input::-ms-clear {
    display: none;
}
/* Keep the login field's spacing outside the eye-button positioning box. */
html body.login-body .login-card .nx-password-field {
    margin: 0 0 24px;
}
html body.login-body .login-card .nx-password-field + button[type="submit"] {
    margin-top: 0 !important;
}

/* The Change Password page follows Nexora's light account-card styling. */
html body .nx-password-page {
    width: 100%;
    max-width: 740px;
    min-width: 0;
    margin: 0;
    color: #192956;
}
html body .nx-password-page,
html body .nx-password-page * { box-sizing: border-box; }
html body .nx-password-page .nx-password-heading { margin: 0 0 22px; }
html body .nx-password-page .nx-password-eyebrow {
    margin: 0 0 8px;
    color: #6542d7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.5;
    text-transform: uppercase;
}
html body .nx-password-page h1 {
    margin: 0 0 10px;
    color: #172650 !important;
    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.025em;
    opacity: 1;
}
html body .nx-password-page .nx-password-intro {
    margin: 0;
    max-width: 590px;
    color: #526383 !important;
    font-size: 14px;
    line-height: 1.65;
    opacity: 1;
}
html body .nx-password-page .nx-password-card {
    padding: 26px;
    border: 1px solid #ccd6ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(30, 46, 93, .045);
}
html body .nx-password-page .nx-password-form { margin: 0; padding: 0; }
html body .nx-password-page .nx-password-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
}
html body .nx-password-page .nx-password-current { grid-column: 1 / -1; }
html body .nx-password-page .nx-password-field-group { min-width: 0; }
html body .nx-password-page .nx-password-field-group > label {
    display: block;
    margin: 0 0 8px;
    color: #26375c !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}
html body .nx-password-page .nx-password-field-group input {
    display: block;
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #c7d1e8;
    border-radius: 8px;
    background: #fff;
    color: #172650;
    font: inherit;
    font-size: 15px;
    line-height: 22px;
    box-shadow: none;
}
html body .nx-password-page .nx-password-field-group input:focus {
    border-color: #7654e4;
    outline: 2px solid rgba(107, 66, 222, .18);
    outline-offset: 1px;
}
html body .nx-password-page .nx-password-help {
    display: block;
    margin: 7px 0 0;
    color: #566785 !important;
    font-size: 12px;
    line-height: 1.55;
}
html body .nx-password-page .nx-password-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e3e8f4;
}
html body .nx-password-page .nx-password-session-note {
    flex: 1 1 230px;
    max-width: 380px;
    margin: 0;
    color: #526383 !important;
    font-size: 12px;
    line-height: 1.6;
}
html body .nx-password-page button.nx-password-submit,
html body .nx-users form[action$="/reset-password"] button.nx-users-primary,
html body .nx-users form[action="/users/create"] button.nx-users-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 11px 20px;
    border: 1px solid transparent !important;
    border-radius: 8px;
    background: linear-gradient(110deg, #6434dc 0%, #2149dc 100%) !important;
    color: #fff !important;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(78, 50, 198, .13);
    cursor: pointer;
}
html body .nx-password-page button.nx-password-submit:hover,
html body .nx-users form[action$="/reset-password"] button.nx-users-primary:hover,
html body .nx-users form[action="/users/create"] button.nx-users-primary:hover {
    background: linear-gradient(110deg, #5527c8 0%, #1a3fc7 100%) !important;
}
html body .nx-password-page button.nx-password-submit:focus-visible,
html body .nx-users form[action$="/reset-password"] button.nx-users-primary:focus-visible,
html body .nx-users form[action="/users/create"] button.nx-users-primary:focus-visible {
    outline: 3px solid #b8a5f2;
    outline-offset: 3px;
}
html body .nx-password-page .nx-password-error {
    margin: 0 0 22px;
    padding: 12px 14px;
    border: 1px solid #efc3cb;
    border-radius: 8px;
    background: #fff3f5;
    color: #9c243b;
    font-size: 13px;
    line-height: 1.6;
}
@media (max-width: 600px) {
    html body .nx-password-page .nx-password-card { padding: 20px 18px; }
    html body .nx-password-page .nx-password-fields { grid-template-columns: minmax(0, 1fr); }
    html body .nx-password-page .nx-password-actions { align-items: stretch; }
    html body .nx-password-page .nx-password-session-note { flex-basis: 100%; }
    html body .nx-password-page button.nx-password-submit { width: 100%; }
}

/* NEXORA-PASSWORD-COLOURS-03
   Override workforce-ui.css's important generic button rule only for
   password controls. The .content.content specificity matches the Nexora
   theme's established approach; all original layout rules remain intact. */
html body .layout .main .content.content .nx-password-field > button.nx-password-toggle {
    background: transparent !important;
    color: #52648a !important;
}
html body .layout .main .content.content .nx-password-field > button.nx-password-toggle:hover,
html body .layout .main .content.content .nx-password-field > button.nx-password-toggle[aria-pressed="true"] {
    background: var(--nx-soft, #eee9ff) !important;
    color: #2344a0 !important;
}
html body .layout .main .content.content .nx-password-page button.nx-password-submit,
html body .layout .main .content.content .nx-users form[action$="/reset-password"] button.nx-users-primary,
html body .layout .main .content.content .nx-users form[action="/users/create"] button.nx-users-primary {
    background: linear-gradient(110deg, #6931d6, #164cdb) !important;
    color: #ffffff !important;
}
html body .layout .main .content.content .nx-password-page button.nx-password-submit:hover:not(:disabled):not([aria-disabled="true"]),
html body .layout .main .content.content .nx-users form[action$="/reset-password"] button.nx-users-primary:hover:not(:disabled):not([aria-disabled="true"]),
html body .layout .main .content.content .nx-users form[action="/users/create"] button.nx-users-primary:hover:not(:disabled):not([aria-disabled="true"]) {
    background: linear-gradient(110deg, #5725bb, #123fba) !important;
    color: #ffffff !important;
}
