@@ -280,7 +280,7 @@ export default function SignInViewPage(): React.JSX.Element {
280280 }
281281
282282 return (
283- < div className = "relative flex w-full flex-col items-center justify-center" >
283+ < div className = "relative mt-4 flex w-full flex-col items-center justify-end md: justify-center" >
284284 { alert && (
285285 < div className = "w-full max-w-md" role = "alert" >
286286 < AlertComponent
@@ -303,8 +303,8 @@ export default function SignInViewPage(): React.JSX.Element {
303303 />
304304 </ div >
305305 ) }
306- < div className = "bg-card border-border relative z-10 h-full w-full max-w-md overflow-hidden rounded-xl border p-8 shadow-xl transition-transform duration-300" >
307- < div className = "mb-6 text-center" >
306+ < div className = "bg-card border-border relative z-10 h-full w-full max-w-md overflow-hidden rounded-xl border p-4 pt-6 shadow-xl transition-transform duration-300 md:p-8 " >
307+ < div className = "mb-2 text-center md:mb-6 " >
308308 < p className = "text-muted-foreground text-sm" >
309309 Sign in to your account to continue
310310 </ p >
@@ -314,7 +314,7 @@ export default function SignInViewPage(): React.JSX.Element {
314314 < Button
315315 type = "button"
316316 variant = "ghost"
317- className = { `flex flex-1 items-center justify-center gap-1 px-4 py-2 hover:text-inherit ${
317+ className = { `flex h-8 flex-1 items-center justify-center gap-1 px-4 py-2 text-xs hover:text-inherit md:h-auto md:text-sm ${
318318 isPasswordTab
319319 ? 'bg-card text-foreground hover:bg-background'
320320 : 'bg-muted text-muted-foreground hover:bg-transparent'
@@ -327,7 +327,7 @@ export default function SignInViewPage(): React.JSX.Element {
327327 < Button
328328 type = "button"
329329 variant = "ghost"
330- className = { `flex flex-1 items-center justify-center gap-1 px-4 py-2 hover:text-inherit ${
330+ className = { `flex h-8 flex-1 items-center justify-center gap-1 px-4 py-2 text-xs hover:text-inherit md:h-auto md:text-sm not-last: ${
331331 ! isPasswordTab
332332 ? 'bg-card text-foreground hover:bg-background'
333333 : 'bg-muted text-muted-foreground hover:bg-transparent'
@@ -346,7 +346,7 @@ export default function SignInViewPage(): React.JSX.Element {
346346 name = "email"
347347 render = { ( { field } ) => (
348348 < FormItem >
349- < FormLabel className = "data-[error=true]:text-foreground" >
349+ < FormLabel className = "data-[error=true]:text-foreground text-xs md:text-sm " >
350350 Email
351351 </ FormLabel >
352352 < FormControl >
@@ -356,7 +356,7 @@ export default function SignInViewPage(): React.JSX.Element {
356356 { ...field }
357357 type = "email"
358358 placeholder = "test@example.com"
359- className = "pl-10"
359+ className = "pl-10 text-xs md:text-sm "
360360 disabled = { loading }
361361 />
362362 </ div >
@@ -372,15 +372,17 @@ export default function SignInViewPage(): React.JSX.Element {
372372 name = "password"
373373 render = { ( { field } ) => (
374374 < FormItem >
375- < FormLabel > Password</ FormLabel >
375+ < FormLabel className = "text-xs md:text-sm" >
376+ Password
377+ </ FormLabel >
376378 < FormControl >
377379 < div className = "relative" >
378380 < LockKeyhole className = "text-muted-foreground absolute top-2.5 left-3 h-4 w-4" />
379381 < Input
380382 { ...field }
381383 type = { showPassword ? 'text' : 'password' }
382384 placeholder = "••••••••"
383- className = "pr-10 pl-10"
385+ className = "pr-10 pl-10 text-xs md:text-sm "
384386 disabled = { loading }
385387 />
386388 < button
@@ -403,59 +405,64 @@ export default function SignInViewPage(): React.JSX.Element {
403405 ) }
404406
405407 { isPasswordTab && (
406- < div className = "text-right text-sm" >
408+ < div className = "text-right text-xs md:text- sm" >
407409 < Button
408410 type = "button"
409411 onClick = { forgotUserPassword }
410412 variant = { 'default' }
411- className = "focus-visible:ring-ring text-foreground w-fit bg-transparent px-2 text-left underline-offset-4 shadow-none hover:bg-transparent hover:underline focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
413+ className = "focus-visible:ring-ring text-foreground url-link w-fit bg-transparent px-2 text-left text-xs underline-offset-4 shadow-none hover:bg-transparent hover:underline focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none md:text-sm [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
412414 >
413415 Forgot password?
414416 </ Button >
415417 </ div >
416418 ) }
417419
418- < Button type = "submit" disabled = { loading } className = "w-full" >
420+ < Button
421+ type = "submit"
422+ disabled = { loading }
423+ className = "w-full text-xs md:text-sm"
424+ >
419425 { loading && < Loader2 className = "mr-2 h-4 w-4 animate-spin" /> }
420426 { isPasswordTab ? 'Sign in' : 'Continue with passkey' }
421427 </ Button >
422428
423- < div className = "my-6 flex items-center justify-center gap-4" >
429+ < div className = "my-2 flex items-center justify-center gap-2 md:my-6 md: gap-4" >
424430 < hr className = "border-border flex-grow border-t" />
425- < span className = "text-muted-foreground text-sm" > OR</ span >
431+ < span className = "text-muted-foreground text-xs md:text-sm" >
432+ OR
433+ </ span >
426434 < hr className = "border-border flex-grow border-t" />
427435 </ div >
428436
429437 < div className = "mt-6 flex flex-col gap-3" >
430438 < Button
431439 type = "button"
432- className = ""
440+ className = "text-xs md:text-sm "
433441 onClick = { ( ) => route . push ( '#' ) }
434442 variant = { 'outline' }
435443 >
436- < Icons . google className = "mr-2 h-4 w-4" />
444+ < Icons . google className = "mr-2 h-2 w-2 md:h-4 md: w-4" />
437445 Sign in with Google
438446 </ Button >
439447
440448 < Button
441449 type = "button"
442- className = ""
450+ className = "text-xs md:text-sm "
443451 onClick = { ( ) => route . push ( '#' ) }
444452 variant = { 'outline' }
445453 >
446- < Icons . gitHub className = "mr-2 h-4 w-4" />
447- < span className = "text-sm font-medium" > Sign in with GitHub</ span >
454+ < Icons . gitHub className = "mr-2 h-2 w-2 md:h-4 md:w-4" />
455+ < span className = "text-xs font-medium md:text-sm" >
456+ Sign in with GitHub
457+ </ span >
448458 </ Button >
449459 </ div >
450460
451- < div className = "mt-4 text-center text-sm" >
461+ < div className = "mt-4 text-center text-xs md:text- sm" >
452462 < span className = "text-muted-foreground" >
453463 Don’t have an account?{ ' ' }
454464 </ span >
455- < Link
456- href = { signUpUrl }
457- className = "text-muted-foreground hover:text-inherit hover:underline"
458- >
465+ < Link href = { signUpUrl } className = "url-link" >
459466 Create one
460467 </ Link >
461468 </ div >
0 commit comments