diff --git a/src/App.css b/src/App.css index 6583537..ded98d1 100644 --- a/src/App.css +++ b/src/App.css @@ -1804,6 +1804,53 @@ box-shadow: 0 0 0 3px var(--accent-soft); } +.password-input { + position: relative; + display: flex; + align-items: center; +} + +.password-input .auth-input { + width: 100%; + padding-right: 52px; +} + +.password-input__toggle { + position: absolute; + right: 8px; + display: inline-flex; + align-items: center; + justify-content: center; + width: 38px; + height: 38px; + border: 0; + border-radius: 12px; + background: transparent; + color: var(--muted); + cursor: pointer; + transition: background 120ms ease, color 120ms ease; +} + +.password-input__toggle:hover, +.password-input__toggle:focus-visible { + background: rgba(30, 120, 255, 0.1); + color: var(--text); +} + +.password-input__toggle:focus-visible { + outline: 2px solid var(--accent); + outline-offset: 2px; +} + +.password-input__toggle svg { + display: block; + fill: none; + stroke: currentColor; + stroke-width: 1.8; + stroke-linecap: round; + stroke-linejoin: round; +} + /* Error variant — paired with aria-invalid on the input and the #