/* Scoped to password forms; reuse the existing account card and controls. */
.dbg-password { color-scheme: inherit; --pw-bg: light-dark(#fff,#111827); --pw-text: light-dark(#202a42,#f3f4f6); --pw-border: light-dark(#74859b,#8092a8); --pw-link: light-dark(#006a9e,#9fddff); }
.dbg-password .dbg-profile-card { background: var(--pw-bg,#fff); color: var(--pw-text,#202a42); }
.dbg-password h1, .dbg-password label { color: inherit; }
.dbg-profile.dbg-password input:not([type="checkbox"]) { background: var(--pw-bg,#fff); color: var(--pw-text,#202a42); border-color: var(--pw-border,#74859b); }
.dbg-profile.dbg-password input[type="hidden"] { display:none; }
.dbg-password .control-group { margin-block-end: 1rem; }
.dbg-password a:not(.dbg-profile-button) { color: var(--pw-link,#006a9e); }
.dbg-password a:not(.dbg-profile-button):hover { color: var(--pw-link,#006a9e); background: transparent; text-decoration: underline; }
.dbg-password :focus-visible { outline-color: var(--pw-link,#006a9e); }
.dbg-password .input-group { min-inline-size:0; max-inline-size:100%; }
.dbg-password .password-group { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.dbg-password .password-group input { flex:1 1 12rem; }
.dbg-password .form-text, .dbg-password .field-password-requirements { color: inherit; overflow-wrap:anywhere; }
:where([data-theme="light"], [data-bs-theme="light"]) .dbg-password { color-scheme:light; }
:where([data-theme="dark"], [data-bs-theme="dark"]) .dbg-password { color-scheme:dark; }
.dbg-password .input-group { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.dbg-profile.dbg-password .input-group input { flex:1 1 10rem; inline-size:auto; margin-block:.35rem; }
.dbg-profile.dbg-password :is(input,select,textarea,button,a):focus-visible { outline-color:var(--pw-link,#006a9e); }

/* Account-only spacing; never change the site's header or other pages. */
.dbg-password { padding-block: 1rem; scroll-margin-block-start: calc(var(--dbg-header-scroll-offset, 72px) + 1rem); }
.dbg-password .input-password-toggle { display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; inline-size:44px; block-size:44px; min-inline-size:44px; min-block-size:44px; padding:0; border:1px solid var(--pw-border,#74859b); border-radius:6px; color:var(--pw-text,#202a42); background:var(--pw-bg,#fff); }
.dbg-password .dbg-password-eye { display:inline-flex; align-items:center; justify-content:center; }
.dbg-password .dbg-password-eye::before { content:none; }
.dbg-password .dbg-password-eye svg { inline-size:22px; block-size:22px; }

.dbg-profile-login .dbg-profile-button.dbg-password-secondary {
 display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box;
 min-block-size:44px; max-inline-size:100%; padding:12px 18px;
 border:1px solid currentColor; border-radius:6px; background:transparent;
 color:light-dark(#060454,#9fddff); text-decoration:none; line-height:1.4;
}
.dbg-profile-login .dbg-profile-button.dbg-password-secondary:hover { background:light-dark(#eaf4fa,#24354b); color:light-dark(#060454,#c4ecff); }
.dbg-profile-login .dbg-password-secondary:focus-visible { outline:3px solid light-dark(#006a9e,#9fddff); outline-offset:3px; }
.dbg-password progress { display:block; inline-size:100%; block-size:1rem; accent-color:var(--pw-link); }
.dbg-password [hidden] { display:none; }
.dbg-password-error { font-weight:600; }
/* Joomla can append its legacy feedback after deferred scripts initialize. */
.dbg-password meter, .dbg-password [id^="password-"] { display:none; }

/* Shared account action layout; never apply to field toggles or registration. */
.dbg-profile-login .dbg-password-actions {
 display:flex; flex-wrap:wrap; justify-content:flex-start; align-items:stretch;
 gap:.75rem; margin-block-start:1rem; text-align:start;
}
.dbg-profile-login .dbg-password-actions > .dbg-profile-button {
 display:inline-flex; align-items:center; justify-content:center;
 flex:0 0 auto; inline-size:auto; max-inline-size:100%; min-block-size:48px;
 box-sizing:border-box; margin:0; padding:.625rem 1rem; border-radius:6px;
 font:inherit; line-height:1.4; text-align:center;
 white-space:normal; overflow-wrap:normal; word-break:normal;
}
.dbg-profile-login .dbg-password-actions > button[type="submit"] {
 background:#060454; border:1px solid #060454; color:#fff;
}
.dbg-profile-login .dbg-password-actions > button[type="submit"]:hover { background:#151271; }
.dbg-profile-login .dbg-password-actions > .dbg-profile-button:focus-visible {
 outline:3px solid light-dark(#006a9e,#9fddff); outline-offset:3px;
}
@media (max-width:479px) {
 .dbg-profile-login .dbg-password-actions { flex-direction:column; align-items:stretch; }
 .dbg-profile-login .dbg-password-actions > .dbg-profile-button { inline-size:100%; padding-inline:.625rem; font-size:.875rem; }
}

/* Login field alongside its independent 44px toggle. */
.dbg-profile-login .dbg-login-password {
 display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center;
 gap:.5rem; margin:.35rem 0 1rem;
}
.dbg-profile-login .dbg-login-password > #dbg-password { margin:0; }
.dbg-profile-login .dbg-login-toggle {
 display:inline-grid; place-items:center; inline-size:44px; block-size:44px;
 padding:0; border:1px solid #74859b; border-radius:6px; cursor:pointer;
 color:#060454; background:#fff;
}
.dbg-profile-login .dbg-login-toggle[hidden] { display:none; }
.dbg-profile-login .dbg-login-toggle svg {
 display:block; fill:none; stroke:currentColor; stroke-width:1.7;
}
.dbg-profile-login .dbg-login-toggle .dbg-login-eye-slash { display:none; }
.dbg-profile-login .dbg-login-toggle.is-visible .dbg-login-eye-slash { display:block; }
.dbg-profile-login .dbg-login-toggle:focus-visible {
 outline:3px solid light-dark(#006a9e,#9fddff); outline-offset:2px;
}
