/* Member credentials share a field treatment across static account pages and admin dialogs. */
.member-password-screen, .member-reset-dialog {
    --credential-ink: #1d3444;
    --credential-muted: #526572;
    --credential-line: #c7d2d7;
    --credential-action: #075c5f;
    color: var(--credential-ink);
    font: 400 16px/1.5 "Segoe UI", Arial, sans-serif;
}
.member-password-screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #edf2f2;
}
.credential-masthead {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px clamp(20px, 5vw, 84px);
    background: #152d3b;
    border-bottom: 3px solid #23c8c4;
}
.credential-masthead img { width: 84px; height: auto; }
.credential-masthead button {
    padding: 9px 16px;
    border: 1px solid #82969f;
    border-radius: 7px;
    background: transparent;
    color: white;
    font: 600 14px/1.4 "Segoe UI", Arial, sans-serif;
}
.credential-masthead button:hover { background: #2c4857; }
.credential-stage {
    flex: 1;
    display: grid;
    place-items: center;
    padding: clamp(24px, 5vh, 64px) 16px;
}
.credential-card {
    box-sizing: border-box;
    width: min(100%, 470px);
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid #d2dcdf;
    border-radius: 18px;
    background: white;
    box-shadow: 0 16px 48px -24px #20394655;
}
.credential-heading { margin-bottom: 24px; }
.credential-icon {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: #dff2ef; color: #116668;
    font-size: 24px; flex-shrink: 0;
}
.credential-heading h1, .member-reset-dialog .mud-dialog-title h2 {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--credential-ink);
    font-weight: 650; letter-spacing: -.035em; line-height: 1.18;
}
.credential-heading h1 { margin: 14px 0 8px; font-size: clamp(28px, 4vw, 34px); }
.credential-heading p, .credential-form p { margin: 0; color: var(--credential-muted); }
.credential-heading p { font-size: 15px; line-height: 1.55; }
.credential-form .credential-field { margin: 0 0 18px; }
.credential-field label {
    display: block; margin: 0 0 6px;
    font: 600 14px/1.4 "Segoe UI", Arial, sans-serif;
    color: var(--credential-ink);
}
.credential-field .password-input input {
    display: block; box-sizing: border-box; width: 100%; height: 46px;
    margin: 0; padding: 9px 68px 9px 13px;
    border: 1px solid var(--credential-line); border-radius: 8px;
    background: white; color: var(--credential-ink); font: inherit;
}
.credential-field .password-input input:focus,
.credential-form button:focus-visible, .credential-masthead button:focus-visible, .credential-back:focus-visible {
    outline: 3px solid #289495; outline-offset: 2px;
}
.credential-field .password-input .credential-visibility {
    width: 60px; height: calc(100% - 4px); top: 2px; right: 2px;
    background: transparent; color: #146569;
    font: 600 13px/1 "Segoe UI", Arial, sans-serif;
}
.credential-visibility[aria-pressed="false"] .visible-on,
.credential-visibility[aria-pressed="true"] .visible-off { display: none; }
.credential-field p { margin-top: 6px; font-size: 13px; }
.credential-form .validation-message, .credential-form .credential-error {
    margin: 7px 0 0; color: #9d282f; font-size: 14px;
}
.credential-form .credential-error { padding: 10px 12px; border-left: 3px solid #ae383f; background: #fff1f2; }
.credential-form .credential-primary, .credential-form .credential-secondary {
    min-height: 44px; padding: 10px 16px; border-radius: 8px;
    font: 600 15px/1.4 "Segoe UI", Arial, sans-serif; cursor: pointer;
}
.credential-form .credential-primary { border: 1px solid var(--credential-action); background: var(--credential-action); color: white; }
.credential-form .credential-primary:hover { background: #064b50; }
.credential-card .credential-primary { width: 100%; margin-top: 5px; }
.credential-form .credential-secondary { border: 1px solid var(--credential-line); color: var(--credential-ink); background: white; }
.credential-form button:disabled { opacity: .65; cursor: wait; }
.credential-back { display: block; margin-top: 14px; text-align: center; color: #075c5f; }
.member-reset-dialog.mud-dialog { border-radius: 15px; overflow: auto; max-height: calc(100dvh - 32px); }
.member-reset-dialog .mud-dialog-title { padding: 24px 26px 16px; }
.member-reset-dialog .mud-dialog-title h2 { margin: 0; font-size: 24px; }
.member-reset-dialog .member-reset-content { padding: 0; margin: 0; }
.credential-body { padding: 0 26px 20px; }
.credential-recipient {
    display: flex; align-items: center; gap: 12px;
    padding: 13px; margin-bottom: 20px; border-radius: 9px;
    background: #edf5f4; color: #183e43;
}
.credential-recipient .credential-icon { width: 36px; height: 36px; font-size: 20px; }
.credential-recipient div { min-width: 0; overflow-wrap: anywhere; }
.credential-recipient strong, .credential-recipient div span { display: block; }
.credential-recipient div span { color: #476269; font-size: 14px; }
.credential-explanation { font-size: 14px; }
.credential-actions {
    border-top: 1px solid #d2dcdf; padding: 16px 26px;
    display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px;
}
.member-reset-dialog .credential-field label, .member-reset-dialog .mud-dialog-title h2 { color: var(--admin-text, #1d3444); }
.member-reset-dialog .credential-field p, .member-reset-dialog .credential-explanation { color: var(--admin-text, #526572); }
@media (max-width: 480px) {
    .credential-stage { align-items: start; padding: 20px 12px; }
    .credential-card { padding: 24px 20px; }
    .credential-masthead { min-height: 56px; }
    .member-reset-dialog.mud-dialog { margin: 12px; max-width: calc(100% - 24px); }
    .member-reset-dialog .mud-dialog-title { padding: 20px 18px 14px; }
    .credential-body { padding: 0 18px 18px; }
    .credential-actions { padding: 14px 18px; }
}
