Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions frontend/src/components/login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function StyledInput({ ...props }) {
return (
<input
{...props}
className="w-full h-11 rounded-xl px-4 text-sm font-medium outline-none transition-all duration-200"
className={`w-full h-11 rounded-xl px-4 text-sm font-medium outline-none transition-all duration-200 ${props.className || ""}`}
style={{
background: "rgba(255,255,255,0.05)",
border: "1px solid rgba(255,255,255,0.1)",
Expand Down Expand Up @@ -219,16 +219,17 @@ function Login() {
required
disabled={submitting}
placeholder="••••••••"
className="pr-12"
/>
<button
type="button"
onClick={() => setShowPassword(!showPassword)}
className="absolute right-3 top-[70%] -translate-y-1/2"
style={{cursor : 'pointer'}}
>
{showPassword ? ( <FiEyeOff size={14} style={{ color: "var(--text-secondary)" }} />) : (
<FiEye size={14} style={{ color: "var(--text-secondary)" }} />)}
</button>
type="button"
onClick={() => setShowPassword(!showPassword)}
className="absolute right-3 top-[2.65rem] inline-flex h-8 w-8 items-center justify-center rounded-lg border border-white/10 bg-white/10 text-white transition-colors hover:bg-white/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400/70"
aria-label={showPassword ? "Hide password" : "Show password"}
title={showPassword ? "Hide password" : "Show password"}
>
{showPassword ? <FiEyeOff size={15} /> : <FiEye size={15} />}
</button>
</div>

<div className="pt-1">
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/register/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function StyledInput({ ...props }) {
return (
<input
{...props}
className="w-full h-10 rounded-xl px-4 text-sm font-medium outline-none transition-all duration-200"
className={`w-full h-10 rounded-xl px-4 text-sm font-medium outline-none transition-all duration-200 ${props.className || ""}`}
style={{
background: "rgba(255,255,255,0.05)",
border: "1px solid rgba(255,255,255,0.1)",
Expand Down Expand Up @@ -405,6 +405,7 @@ function Register() {
required
disabled={submitting || verifying}
placeholder="you@example.com"
className="auth-input"
/>
</div>

Expand Down
11 changes: 11 additions & 0 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@
display: none;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active {
-webkit-text-fill-color: #f0f0f5;
caret-color: #a855f7;
-webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset;
box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset;
transition: background-color 9999s ease-out 0s;
}

.forestDark {
--bg-primary: #3f5a46;
--text-primary: white;
Expand Down