Password reset without inbox access in HTML, CSS and vanilla JS
A copy-paste Password reset without inbox access in plain HTML and CSS, with vanilla JavaScript: no framework, no build step, MIT-licensed.
Live preview
Source (copy-ready)
<section class="dcl-reset-without-inbox" data-dcl-scheme="light" aria-label="Password reset without inbox access example">
<div data-stack><h2>Can't open your recovery inbox?</h2>
<dl data-well><dt>Work account</dt><dd>Contact your organization's support desk from a known channel.</dd><dt>Personal account</dt><dd>Look for another recovery method you previously configured.</dd></dl>
<details><summary>What can I prepare?</summary><p>Have your workspace name ready. Do not share a password or a verification code.</p></details>
</div>
<script>
(() => {
const root = document.currentScript.closest(".dcl-reset-without-inbox");
const preference = matchMedia("(prefers-color-scheme: dark)");
const setTheme = () => { root.dataset.dclScheme = preference.matches ? "dark" : "light"; };
preference.addEventListener("change", setTheme);
setTheme();
})();
</script>
</section>
<style>
.dcl-reset-without-inbox, .dcl-reset-without-inbox * { box-sizing: border-box; }
.dcl-reset-without-inbox { font: 1rem/1.5 system-ui, sans-serif; max-inline-size: 34rem; padding: clamp(0.75rem, 3vw, 1.25rem); border: 1px solid; border-radius: 0.75rem; overflow-wrap: anywhere; }
.dcl-reset-without-inbox :where(h2, h3, p, ol, ul, dl, dd) { margin: 0; }
.dcl-reset-without-inbox h2 { font-size: 1.25rem; line-height: 1.25; }
.dcl-reset-without-inbox h3 { font-size: 1rem; }
.dcl-reset-without-inbox p + p { margin-block-start: 0.5rem; }
.dcl-reset-without-inbox [data-stack], .dcl-reset-without-inbox form { display: grid; gap: 0.75rem; }
.dcl-reset-without-inbox [data-row] { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
.dcl-reset-without-inbox [data-split] { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0.75rem 1.25rem; align-items: start; }
.dcl-reset-without-inbox [data-spread] { justify-content: space-between; }
.dcl-reset-without-inbox [hidden] { display: none !important; }
.dcl-reset-without-inbox [data-well] { padding: 0.75rem; border-radius: 0.375rem; }
.dcl-reset-without-inbox [data-chip] { display: inline-block; width: fit-content; padding: 0.125rem 0.55rem; border-radius: 99rem; font-size: 0.875rem; font-weight: 700; }
.dcl-reset-without-inbox :where(button, summary, input, select) { font: inherit; }
.dcl-reset-without-inbox :where(button, input, select) { min-block-size: 44px; min-inline-size: 0; max-inline-size: 100%; }
.dcl-reset-without-inbox :where(button, input, select) { border: 1px solid; border-radius: 0.375rem; padding: 0.45rem 0.7rem; }
.dcl-reset-without-inbox :where(button, summary) { cursor: pointer; font-weight: 650; }
.dcl-reset-without-inbox :where(button, summary):active { box-shadow: inset 0 0 0 2px currentColor; }
.dcl-reset-without-inbox summary:hover { text-decoration: underline; }
.dcl-reset-without-inbox :where(button, input, select):disabled, .dcl-reset-without-inbox [aria-disabled=true] { cursor: not-allowed; border-style: dashed; }
.dcl-reset-without-inbox label { display: grid; gap: 0.25rem; }
.dcl-reset-without-inbox :where(input, select) { inline-size: 100%; }
.dcl-reset-without-inbox label[data-choice] { display: flex; gap: 0.5rem; align-items: center; min-block-size: 44px; }
.dcl-reset-without-inbox label[data-choice] input { inline-size: 1.25rem; block-size: 1.25rem; min-block-size: 0; flex-shrink: 0; }
.dcl-reset-without-inbox fieldset { min-inline-size: 0; margin: 0; border-radius: 0.375rem; padding: 0.5rem 0.75rem; }
.dcl-reset-without-inbox :focus-visible { outline: 3px solid #005c62; outline-offset: 2px; }
.dcl-reset-without-inbox[data-dcl-scheme="dark"] :focus-visible { outline: 3px solid #8fe1da; outline-offset: 2px; }
.dcl-reset-without-inbox dt { font-weight: 700; }
.dcl-reset-without-inbox dd + dt { margin-block-start: 0.5rem; }
.dcl-reset-without-inbox { color-scheme: light; border-color: #697f84; }
.dcl-reset-without-inbox { color: #11292f; background-color: #ffffff; }
.dcl-reset-without-inbox [data-well], .dcl-reset-without-inbox [data-chip] { color: #11292f; background-color: #e4edef; }
.dcl-reset-without-inbox button, .dcl-reset-without-inbox input, .dcl-reset-without-inbox select { color: #11292f; background-color: #e4edef; }
.dcl-reset-without-inbox button[data-primary] { color: #ffffff; background-color: #00535a; }
.dcl-reset-without-inbox button:hover { color: #ffffff; background-color: #003c42; }
.dcl-reset-without-inbox button[disabled], .dcl-reset-without-inbox button[aria-disabled=true] { color: #405a60; background-color: #e4edef; }
.dcl-reset-without-inbox[data-dcl-scheme="dark"] { color-scheme: dark; border-color: #839fa5; }
.dcl-reset-without-inbox[data-dcl-scheme="dark"] { color: #eff8f9; background-color: #142f36; }
.dcl-reset-without-inbox[data-dcl-scheme="dark"] [data-well], .dcl-reset-without-inbox[data-dcl-scheme="dark"] [data-chip] { color: #eff8f9; background-color: #1c3c44; }
.dcl-reset-without-inbox[data-dcl-scheme="dark"] button, .dcl-reset-without-inbox[data-dcl-scheme="dark"] input, .dcl-reset-without-inbox[data-dcl-scheme="dark"] select { color: #eff8f9; background-color: #1c3c44; }
.dcl-reset-without-inbox[data-dcl-scheme="dark"] button[data-primary] { color: #11292f; background-color: #8fe1da; }
.dcl-reset-without-inbox[data-dcl-scheme="dark"] button:hover { color: #11292f; background-color: #b2f2ec; }
.dcl-reset-without-inbox[data-dcl-scheme="dark"] button[disabled], .dcl-reset-without-inbox[data-dcl-scheme="dark"] button[aria-disabled=true] { color: #b0c9ce; background-color: #1c3c44; }
</style>
When to use
Use a separate help route for a person who cannot open the inbox associated with their account.
Avoid
Do not solicit passwords, identity documents, or recovery codes in an unauthenticated help widget.
Accessibility
The help options are a list with strong labels. A native disclosure provides preparation guidance without leaving the page. Text contrast is at least 6.1:1 in light and 6.7:1 in dark.
Was this useful? Send feedback.