@@ -63,34 +63,55 @@ export function LoginScreen() {
6363 < BackgroundDecorations />
6464
6565 { /* Logo */ }
66- < div className = "relative z-10 flex justify-center mt-[60px]" >
67- < div className = "w-[128px] h-[150px]" >
68- < img src = { imgLogo } alt = "Logo" className = "object-contain" />
66+ < div
67+ className = "relative z-10 flex justify-center shrink-0"
68+ style = { { marginTop : "clamp(16px, 5dvh, 60px)" } }
69+ >
70+ < div
71+ className = "flex items-center justify-center"
72+ style = { {
73+ width : "clamp(88px, 16dvh, 128px)" ,
74+ height : "clamp(103px, 18.75dvh, 150px)" ,
75+ } }
76+ >
77+ < img src = { imgLogo } alt = "Logo" className = "w-full h-full object-contain" />
6978 </ div >
7079 </ div >
7180
7281 { /* Header */ }
73- < div className = "relative z-10 text-center mt-2" >
74- < h1 className = "text-[#063c55] font-['Heebo',sans-serif]" style = { { fontSize : "30px" , fontWeight : 700 } } >
82+ < div className = "relative z-10 text-center mt-2 shrink-0" >
83+ < h1
84+ className = "text-[#063c55] font-['Heebo',sans-serif]"
85+ style = { { fontSize : "clamp(22px, 3.5dvh, 30px)" , fontWeight : 700 } }
86+ >
7587 התחברו ל-GroundShare
7688 </ h1 >
77- < p className = "text-[#f68d1e] font-['Heebo',sans-serif] mt-1" style = { { fontSize : "20px" , fontWeight : 600 } } >
89+ < p
90+ className = "text-[#f68d1e] font-['Heebo',sans-serif] mt-1"
91+ style = { { fontSize : "clamp(16px, 2.4dvh, 20px)" , fontWeight : 600 } }
92+ >
7893 התגעגענו!
7994 </ p >
8095 </ div >
8196
82- { /* Form */ }
83- < div className = "relative z-10 flex flex-col gap-[20px] px-8 mt-[60px]" >
97+ { /* Form */ }
98+ < div
99+ className = "relative z-10 flex flex-col px-8 shrink-0"
100+ style = { {
101+ marginTop : "clamp(18px, 5.5dvh, 60px)" ,
102+ gap : "clamp(10px, 2.2dvh, 20px)" ,
103+ } }
104+ >
84105 < div className = "relative" >
85106 < input
86107 type = "email"
87108 value = { email }
88109 onChange = { ( e ) => setEmail ( e . target . value ) }
89110 placeholder = "מייל"
90111 dir = "rtl"
91- // The email input already has a solid border, but you can add focus/hover here too if you ever change the default state
92- className = "w-full bg-[#f3fbfd] border-2 border-transparent hover:border-[#063c55] focus:border-[#063c55] transition-colors duration-200 rounded-[10px] py-[ 18px] px-[35px] text-right font-['Heebo',sans-serif] text-[#626262] text-[16px] outline-none shadow-[inset_4px_14px_16.2px_0px_rgba(0,0,0,0.04)]"
93- />
112+ className = "w-full bg-[#f3fbfd] border-2 border-transparent hover: border-[#063c55] focus:border-[#063c55] transition-colors duration-200 rounded-[10px] px-[35px] text-right font-['Heebo',sans-serif] text-[#626262] text-[16px] outline-none shadow-[inset_4px_14px_16.2px_0px_rgba(0,0,0,0.04)]"
113+ style = { { paddingTop : "clamp(12px, 2dvh, 18px)" , paddingBottom : "clamp(12px, 2dvh, 18px)" } }
114+ />
94115 </ div >
95116 < div className = "relative" >
96117 < input
@@ -99,8 +120,8 @@ export function LoginScreen() {
99120 onChange = { ( e ) => setPassword ( e . target . value ) }
100121 placeholder = "סיסמא"
101122 dir = "rtl"
102- // Added: hover:border-[#063c55] focus:border-[#063c55] transition-colors duration-200
103- className = "w-full bg-[#f3fbfd] border-2 border-transparent hover:border-[#063c55] focus:border-[#063c55] transition-colors duration-200 rounded-[10px] py-[ 18px] px-[35px] text-right font-['Heebo',sans-serif] text-[#626262] text-[16px] outline-none shadow-[inset_4px_14px_16.2px_0px_rgba(0,0,0,0.04)]"
123+ className = "w-full bg-[#f3fbfd] border-2 border-transparent hover:border-[#063c55] focus:border-[#063c55] transition-colors duration-200 rounded-[10px] px-[35px] text-right font-['Heebo',sans-serif] text-[#626262] text-[16px] outline-none shadow-[inset_4px_14px_16.2px_0px_rgba(0,0,0,0.04)]"
124+ style = { { paddingTop : "clamp(12px, 2dvh, 18px)" , paddingBottom : "clamp(12px, 2dvh, 18px)" } }
104125 />
105126 < button
106127 type = "button"
@@ -114,28 +135,39 @@ export function LoginScreen() {
114135 </ div >
115136
116137 { /* Forgot Password */ }
117- < div className = "relative z-10 px-8 mt-3" >
138+ < div className = "relative z-10 px-8 mt-3 shrink-0 " >
118139 < p className = "text-right font-['Heebo',sans-serif] text-[#626262] text-[14px] cursor-pointer" style = { { fontWeight : 600 } } >
119140 שכחת סיסמא?
120141 </ p >
121142 </ div >
122143
123144 { /* Error */ }
124145 { error && (
125- < div className = "relative z-10 px-8 mt-3" >
146+ < div className = "relative z-10 px-8 mt-3 shrink-0 " >
126147 < p className = "text-center font-['Heebo',sans-serif] text-[#FF616D] text-[14px]" style = { { fontWeight : 600 } } >
127148 { error }
128149 </ p >
129150 </ div >
130151 ) }
131152
132153 { /* Actions */ }
133- < div className = "relative z-10 flex flex-col items-center gap-[20px] px-8 mt-[30px]" >
154+ < div
155+ className = "relative z-10 flex flex-col items-center px-8 shrink-0"
156+ style = { {
157+ marginTop : "clamp(14px, 3dvh, 30px)" ,
158+ gap : "clamp(10px, 2.2dvh, 20px)" ,
159+ } }
160+ >
134161 < button
135162 onClick = { handleLogin }
136163 disabled = { loading }
137- className = "w-full py-[15px] bg-[#063c55] text-white rounded-[10px] font-['Heebo',sans-serif] cursor-pointer transition-transform active:scale-[0.98] shadow-[0px_10px_20px_0px_rgba(6,60,85,0.15)] disabled:opacity-60"
138- style = { { fontSize : "20px" , fontWeight : 600 } }
164+ className = "w-full bg-[#063c55] text-white rounded-[10px] font-['Heebo',sans-serif] cursor-pointer transition-transform active:scale-[0.98] shadow-[0px_10px_20px_0px_rgba(6,60,85,0.15)] disabled:opacity-60"
165+ style = { {
166+ fontSize : "clamp(17px, 2.3dvh, 20px)" ,
167+ fontWeight : 600 ,
168+ paddingTop : "clamp(11px, 1.7dvh, 15px)" ,
169+ paddingBottom : "clamp(11px, 1.7dvh, 15px)" ,
170+ } }
139171 >
140172 { loading ? "מתחבר..." : "התחברות" }
141173 </ button >
@@ -146,17 +178,26 @@ export function LoginScreen() {
146178 </ div >
147179 < button
148180 onClick = { ( ) => navigate ( "/register" ) }
149- className = "w-full py-[13px] bg-white text-[#063c55] rounded-[10px] font-['Heebo',sans-serif] cursor-pointer transition-transform active:scale-[0.98] hover:bg-[#f3fbfd]"
150- style = { { fontSize : "16px" , fontWeight : 600 , border : "2px solid #063c55" } }
181+ className = "w-full bg-white text-[#063c55] rounded-[10px] font-['Heebo',sans-serif] cursor-pointer transition-transform active:scale-[0.98] hover:bg-[#f3fbfd]"
182+ style = { {
183+ fontSize : "clamp(14px, 1.9dvh, 16px)" ,
184+ fontWeight : 600 ,
185+ border : "2px solid #063c55" ,
186+ paddingTop : "clamp(9px, 1.5dvh, 13px)" ,
187+ paddingBottom : "clamp(9px, 1.5dvh, 13px)" ,
188+ } }
151189 >
152190 אני רוצה להירשם
153191 </ button >
154192 </ div >
155193
156- < div className = "flex-1" />
194+ < div className = "flex-1 min-h-[8px] " />
157195
158196 { /* Social Login */ }
159- < div className = "relative z-10 mb-[40px]" >
197+ < div
198+ className = "relative z-10 shrink-0"
199+ style = { { marginBottom : "clamp(16px, 4.5dvh, 40px)" } }
200+ >
160201 < SocialLoginButtons label = "התחברות באמצעות" />
161202 </ div >
162203 </ div >
0 commit comments