diff --git a/resources/themes/backend/assets/css/auth.css b/resources/themes/backend/assets/css/auth.css new file mode 100644 index 0000000..c6e68f8 --- /dev/null +++ b/resources/themes/backend/assets/css/auth.css @@ -0,0 +1 @@ +:root{color-scheme:light dark;font-family:Instrument Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f8fafc;color:#18181b}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#f8fafc;color:#18181b;-webkit-font-smoothing:antialiased}.auth-main{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.auth-wrap{width:100%;max-width:390px}.auth-brand{display:flex;justify-content:center;margin-bottom:20px}.auth-brand img{width:48px;height:48px}.auth-card{background:#fff;border:1px solid #e4e4e7;border-radius:16px;padding:30px;box-shadow:0 10px 30px rgba(15,23,42,.06)}h1{font-size:24px;line-height:1.2;margin:0 0 8px;text-align:center}p{margin:0}.auth-subtitle{text-align:center;color:#71717a;font-size:14px;margin-bottom:24px}.field{margin-bottom:18px}.field-row{display:flex;align-items:center;justify-content:space-between;gap:12px}label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}input[type=email],input[type=password]{width:100%;height:44px;border:1px solid #d4d4d8;border-radius:9px;padding:0 12px;background:#fff;color:#18181b;font:inherit;outline:none}input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14)}.remember{display:flex;align-items:center;gap:8px;font-size:14px;color:#52525b}.remember input{width:16px;height:16px}.btn{width:100%;min-height:44px;border:0;border-radius:9px;padding:10px 14px;font:inherit;font-weight:600;cursor:pointer}.btn-primary{background:#2563eb;color:#fff}.btn-primary:hover{background:#1d4ed8}.btn-passkey{background:#fff;color:#18181b;border:1px solid #d4d4d8;margin-bottom:18px}.divider{display:flex;align-items:center;gap:12px;color:#71717a;font-size:11px;text-transform:uppercase;margin:2px 0 20px}.divider:before,.divider:after{content:"";height:1px;background:#e4e4e7;flex:1}.link{color:#2563eb;text-decoration:none;font-size:14px}.link:hover{text-decoration:underline}.signup{text-align:center;color:#71717a;font-size:14px;margin-top:22px}.status{padding:10px 12px;border-radius:8px;background:#ecfdf5;color:#047857;font-size:14px;margin-bottom:18px}.error{color:#dc2626;font-size:13px;margin-top:6px}.passkey-error{text-align:center;margin:-8px 0 16px}[hidden]{display:none!important}@media(max-width:480px){.auth-main{padding:16px}.auth-card{padding:24px 20px;border-radius:13px}}@media(prefers-color-scheme:dark){:root{background:#09090b;color:#fafafa}body{background:#09090b;color:#fafafa}.auth-card{background:#18181b;border-color:#27272a;box-shadow:none}.auth-subtitle,.signup,.remember,.divider{color:#a1a1aa}input[type=email],input[type=password]{background:#09090b;border-color:#3f3f46;color:#fafafa}.btn-passkey{background:#18181b;border-color:#3f3f46;color:#fafafa}.divider:before,.divider:after{background:#3f3f46}.status{background:#052e24;color:#6ee7b7}} diff --git a/resources/themes/backend/views/livewire/auth/login.blade.php b/resources/themes/backend/views/livewire/auth/login.blade.php old mode 100755 new mode 100644 index c80bf19..655cdd4 --- a/resources/themes/backend/views/livewire/auth/login.blade.php +++ b/resources/themes/backend/views/livewire/auth/login.blade.php @@ -1,63 +1,95 @@ - -
- + + + + + + + + {{ __('Log in') }} - {{ config('app.name', 'Systems Helpdesk') }} + + + @vite('resources/themes/backend/assets/css/auth.css') + + +
+
+ + + - - +
+

{{ __('Log in to your account') }}

+

{{ __('Enter your email and password below to log in') }}

-
- -
+ @if (session('status')) +
{{ session('status') }}
+ @endif -
- @csrf - - - - - -
- - - @if (Route::has('password.request')) - - {{ __('Forgot your password?') }} - - @endif + - -
- -
+ + @csrf +
+ + + @error('email')

{{ $message }}

@enderror +
-
- - {{ __('Log in') }} - -
- +
+
+ + @if (Route::has('password.request')) + {{ __('Forgot your password?') }} + @endif +
+ + @error('password')

{{ $message }}

@enderror +
-
- {{ __('Don\'t have an account?') }} - {{ __('Sign up') }} -
+
+ +
+ + + + + @if (Route::has('register')) + + @endif +
- +
+ +@vite('resources/themes/backend/assets/js/passkeys.js') + + + diff --git a/vite.config.js b/vite.config.js index 477e230..bacaf65 100644 --- a/vite.config.js +++ b/vite.config.js @@ -32,6 +32,7 @@ export default defineConfig({ laravel({ input:[ backendCssEntry, + 'resources/themes/backend/assets/css/auth.css', 'resources/themes/backend/assets/js/passkeys.js', 'resources/themes/backend/assets/js/layout.js', ...moduleInputs,