fix: dark mode autofill contrast on auth inputs

Browser autofill forces a light background on inputs, making white text
invisible in dark mode. Added -webkit-autofill overrides in globals.css
and switched Input from bg-transparent to bg-background with explicit
text-foreground.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sase Dev
2026-02-15 12:12:01 +00:00
parent 6d7d1873ee
commit a5ee147675
2 changed files with 11 additions and 1 deletions

View File

@@ -39,6 +39,16 @@
body {
@apply bg-background text-foreground antialiased font-sans;
}
/* Fix autofill contrast in dark mode — Chrome/Safari force a light bg on autofilled inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
-webkit-text-fill-color: var(--color-foreground) !important;
-webkit-box-shadow: 0 0 0 1000px var(--color-background) inset !important;
box-shadow: 0 0 0 1000px var(--color-background) inset !important;
transition: background-color 5000s ease-in-out 0s;
}
}
@keyframes shimmer {