@@ -60,7 +60,7 @@ async function submit() {
6060 <div class =" w-full h-full flex items-center justify-center p8 color-base overflow-auto" >
6161 <div class =" w-full max-w-108 flex flex-col items-center text-center" >
6262 <!-- Brand -->
63- <div class =" relative mb5 flex items-center justify-center" >
63+ <div class =" relative flex items-center justify-center" >
6464 <div class =" absolute w-24 h-24 rounded-full bg-primary-500/20 blur-2xl" aria-hidden =" true" />
6565 <VitePlus class="relative w-16 h-16" />
6666 </div >
@@ -74,11 +74,8 @@ async function submit() {
7474 </p >
7575
7676 <!-- Card -->
77- <div class =" mt7 w-full rounded-2xl border border-base bg-base/60 shadow-sm p6 flex flex-col items-center gap-4" >
77+ <div class =" mt6 w-full rounded-lg border border-base bg-base/60 shadow-sm p6 flex flex-col items-center gap-4" >
7878 <div class =" flex flex-col items-center gap-1" >
79- <div class =" text-xs uppercase tracking-wider op-mute font-medium" >
80- One-time code
81- </div >
8279 <p class =" text-sm op-fade" >
8380 Find the
8481 <span class =" font-mono text-primary-600 dark:text-primary-300" >6-digit code</span >
@@ -97,21 +94,6 @@ async function submit() {
9794 @complete =" submit "
9895 />
9996
100- <!-- Live region: reserves space so the layout doesn't jump. -->
101- <p
102- class =" text-sm min-h-5 transition-colors"
103- :class =" error ? 'text-red-500' : 'op-mute'"
104- role =" alert"
105- aria-live =" assertive"
106- >
107- <template v-if =" error " >
108- {{ error }}
109- </template >
110- <template v-else-if =" verifying " >
111- Authorizing...
112- </template >
113- </p >
114-
11597 <Button
11698 type="submit"
11799 variant="primary"
@@ -125,11 +107,26 @@ async function submit() {
125107 </template >
126108 {{ verifying ? 'Authorizing' : 'Authorize' }}
127109 </Button >
110+
111+ <p
112+ v-if =" error || verifying"
113+ class =" text-sm min-h-5 transition-colors"
114+ :class =" error ? 'text-red-500' : 'op-mute'"
115+ role =" alert"
116+ aria-live =" assertive"
117+ >
118+ <template v-if =" error " >
119+ {{ error }}
120+ </template >
121+ <template v-else-if =" verifying " >
122+ Authorizing...
123+ </template >
124+ </p >
128125 </form >
129126 </div >
130127
131- <p class =" mt5 text-xs op-mute max-w-92 leading-relaxed" >
132- You can also open the magic link printed in the terminal to authorize automatically.
128+ <p class =" mt4 text-xs op-mute max-w-92 leading-relaxed" >
129+ You can also use the magic link to authorize automatically.
133130 </p >
134131 </div >
135132 </div >
0 commit comments