@extends('layouts.auth')
@section('title','Choose a new password')
@section('content')
<div class="login-card">
    <div class="text-center mb-4"><div class="erp-logo-icon mb-2"><i class="bi bi-shield-lock-fill"></i></div><h4 class="fw-bold mb-1" style="color:#1e3a8a">Choose a new password</h4><p class="text-muted small">Use at least 10 characters with upper/lowercase letters and a number.</p></div>
    @if($errors->any())<div class="alert alert-danger small"><ul class="mb-0 ps-3">@foreach($errors->all() as $error)<li>{{ $error }}</li>@endforeach</ul></div>@endif
    <form method="POST" action="{{ route('password.update') }}">@csrf
        <input type="hidden" name="token" value="{{ $token }}">
        <label class="form-label small fw-semibold" for="email">Email address</label><input class="form-control mb-3" type="email" id="email" name="email" value="{{ old('email',$email) }}" required autocomplete="email">
        <label class="form-label small fw-semibold" for="password">New password</label><input class="form-control mb-3" type="password" id="password" name="password" required autocomplete="new-password">
        <label class="form-label small fw-semibold" for="password_confirmation">Confirm password</label><input class="form-control mb-3" type="password" id="password_confirmation" name="password_confirmation" required autocomplete="new-password">
        <button class="btn btn-primary-erp w-100" type="submit">Reset password</button>
    </form>
</div>
@endsection
