@extends('layouts.app')

@section('guest')
<div class="auth-shell d-flex align-items-center">
    <div class="container py-5">
        <div class="row justify-content-center">
            <div class="col-md-5">
                <div class="card border-0 shadow">
                    <div class="card-body p-4">
                        <h1 class="h4">Create new password</h1>
                        @if($errors->any())<div class="alert alert-danger">{{ $errors->first() }}</div>@endif
                        <form method="POST" action="{{ route('password.store') }}">
                            @csrf
                            <input type="hidden" name="token" value="{{ $request->route('token') }}">
                            <label class="form-label">Email</label>
                            <input name="email" type="email" value="{{ old('email', $request->email) }}" class="form-control mb-3" required>
                            <label class="form-label">Password</label>
                            <input name="password" type="password" class="form-control mb-3" required>
                            <label class="form-label">Confirm password</label>
                            <input name="password_confirmation" type="password" class="form-control mb-3" required>
                            <button class="btn btn-primary w-100">Update password</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
