49 lines
2.7 KiB
PHP
49 lines
2.7 KiB
PHP
<div class="bg-surface border border-line-soft rounded-card p-6 flex flex-col gap-5">
|
|
<div class="flex flex-col gap-1">
|
|
<h1 class="text-lg font-bold text-ink">{{ __('auth.title') }}</h1>
|
|
<p class="text-[13px] text-ink-3">{{ __('auth.subtitle') }}</p>
|
|
</div>
|
|
|
|
<form wire:submit="login" class="flex flex-col gap-4">
|
|
{{-- email --}}
|
|
<div class="flex flex-col gap-1.5">
|
|
<label for="email" class="text-[12px] font-semibold text-ink-2">{{ __('auth.email') }}</label>
|
|
<input wire:model="email" id="email" type="email" name="email"
|
|
autocomplete="username" required autofocus
|
|
class="w-full rounded-lg bg-raised border border-line px-3 py-2.5 text-sm text-ink placeholder:text-ink-3 outline-none transition-colors focus:border-accent focus:ring-1 focus:ring-accent">
|
|
@error('email')
|
|
<p class="flex items-center gap-1.5 text-[12px] text-offline">
|
|
<x-icon name="alert" :size="13" /> {{ $message }}
|
|
</p>
|
|
@enderror
|
|
</div>
|
|
|
|
{{-- password --}}
|
|
<div class="flex flex-col gap-1.5">
|
|
<label for="password" class="text-[12px] font-semibold text-ink-2">{{ __('auth.password') }}</label>
|
|
<input wire:model="password" id="password" type="password" name="password"
|
|
autocomplete="current-password" required
|
|
class="w-full rounded-lg bg-raised border border-line px-3 py-2.5 text-sm text-ink placeholder:text-ink-3 outline-none transition-colors focus:border-accent focus:ring-1 focus:ring-accent">
|
|
@error('password')
|
|
<p class="flex items-center gap-1.5 text-[12px] text-offline">
|
|
<x-icon name="alert" :size="13" /> {{ $message }}
|
|
</p>
|
|
@enderror
|
|
</div>
|
|
|
|
{{-- remember --}}
|
|
<label class="flex items-center gap-2 text-[13px] text-ink-2 select-none cursor-pointer">
|
|
<input wire:model="remember" type="checkbox"
|
|
class="rounded border-line bg-raised text-accent focus:ring-accent focus:ring-offset-0">
|
|
{{ __('auth.remember') }}
|
|
</label>
|
|
|
|
{{-- submit --}}
|
|
<button type="submit" wire:loading.attr="disabled"
|
|
class="mt-1 inline-flex items-center justify-center gap-2 rounded-lg bg-accent px-4 py-2.5 text-sm font-bold text-base transition-[filter] hover:brightness-110 disabled:opacity-60 disabled:cursor-not-allowed">
|
|
<span wire:loading.remove wire:target="login">{{ __('auth.submit') }}</span>
|
|
<span wire:loading wire:target="login">{{ __('auth.signing_in') }}</span>
|
|
</button>
|
|
</form>
|
|
</div>
|