@@ -48,8 +48,16 @@ onMounted(() => {
4848 </Message >
4949 </template >
5050
51+ <template #title >
52+ <div class =" text-center" >Log in to your account</div >
53+ </template >
54+
55+ <template #subtitle >
56+ <div class =" text-center" >Enter your email and password below to log in</div >
57+ </template >
58+
5159 <form
52- class =" space-y-6"
60+ class =" space-y-6 sm:space-y-8 "
5361 @submit.prevent =" submit"
5462 >
5563 <div class =" flex flex-col gap-2" >
@@ -75,7 +83,19 @@ onMounted(() => {
7583 </div >
7684
7785 <div class =" flex flex-col gap-2" >
78- <label for =" password" >Password</label >
86+ <div class =" flex items-center justify-between" >
87+ <label for =" password" >Password</label >
88+ <InertiaLink
89+ v-if =" canResetPassword"
90+ :href =" route('password.request')"
91+ >
92+ <Button
93+ class =" p-0"
94+ variant =" link"
95+ label =" Forgot your password?"
96+ />
97+ </InertiaLink >
98+ </div >
7999 <Password
80100 v-model =" loginForm.password"
81101 :invalid =" Boolean(loginForm.errors?.password)"
@@ -110,22 +130,27 @@ onMounted(() => {
110130 </div >
111131 </div >
112132
113- <div class =" flex justify-end items-center gap-4 pt-2" >
133+ <div >
134+ <Button
135+ :loading =" loginForm.processing"
136+ type =" submit"
137+ label =" Log in"
138+ fluid
139+ />
140+ </div >
141+
142+ <div class =" text-center" >
143+ <span class =" text-muted-color mr-1" >Don't have an account?</span >
114144 <InertiaLink
115145 v-if =" canResetPassword"
116- :href =" route('password.request ')"
146+ :href =" route('register ')"
117147 >
118148 <Button
119149 class =" p-0"
120150 variant =" link"
121- label =" Forgot your password? "
151+ label =" Sign up "
122152 />
123153 </InertiaLink >
124- <Button
125- :loading =" loginForm.processing"
126- type =" submit"
127- label =" Log In"
128- />
129154 </div >
130155 </form >
131156 </GuestAuthLayout >
0 commit comments