36 lines
2.0 KiB
PHP
36 lines
2.0 KiB
PHP
@extends('layouts.nova')
|
||
|
||
@section('content')
|
||
<div class="flex-1 flex items-center justify-center px-6 py-16 min-h-[calc(100vh-4rem)] box-border">
|
||
<div class="max-w-5xl w-full">
|
||
<div class="rounded-2xl border border-white/10 bg-slate-900/70 backdrop-blur shadow-xl p-8 auth-card">
|
||
<h2 class="text-2xl font-semibold mb-2 text-white">Create Account</h2>
|
||
|
||
<p class="text-sm text-white/60 mb-6">Start with your email. You’ll choose a password and username after verification.</p>
|
||
|
||
<form method="POST" action="{{ route('register') }}" class="space-y-5">
|
||
@csrf
|
||
|
||
<div>
|
||
<label class="block text-sm mb-1 text-white/80" for="email">Email</label>
|
||
<input id="email" name="email" type="email" required placeholder="you@example.com" value="{{ old('email', $prefillEmail ?? '') }}" class="w-full rounded-lg bg-slate-950/70 border border-white/10 px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-cyan-500 text-white" />
|
||
<x-input-error :messages="$errors->get('email')" class="mt-2" />
|
||
</div>
|
||
|
||
@if(($requiresTurnstile ?? false) && ($turnstileSiteKey ?? '') !== '')
|
||
<div class="cf-turnstile" data-sitekey="{{ $turnstileSiteKey }}"></div>
|
||
<x-input-error :messages="$errors->get('captcha')" class="mt-2" />
|
||
@endif
|
||
|
||
<button type="submit" class="w-full rounded-lg py-3 font-medium bg-gradient-to-r from-cyan-500 to-sky-400 hover:from-cyan-400 hover:to-sky-300 text-slate-900 transition">Continue</button>
|
||
|
||
<p class="text-sm text-center text-white/60">Already registered? <a href="{{ route('login') }}" class="text-cyan-400 hover:underline">Sign in</a></p>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
@if(($requiresTurnstile ?? false) && ($turnstileSiteKey ?? '') !== '')
|
||
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
|
||
@endif
|
||
@endsection
|