@extends('layouts.auth')

@section('title', 'Reset Password')

@section('content')
    <h1>Set a new password</h1>
    <p class="subtitle">Choose a strong password for your account</p>

    <form method="POST" action="{{ route('password.update') }}">
        @csrf
        <input type="hidden" name="token" value="{{ $token }}">

        <div class="form-group">
            <label for="email">Email address</label>
            <input id="email" type="email" name="email" class="form-control"
                   value="{{ old('email', $email) }}" required autocomplete="username"
                   placeholder="you@example.com">
            @error('email')
                <p class="error-text">{{ $message }}</p>
            @enderror
        </div>

        <div class="form-group">
            <label for="password">New password</label>
            <input id="password" type="password" name="password" class="form-control"
                   required autocomplete="new-password" placeholder="••••••••">
            @error('password')
                <p class="error-text">{{ $message }}</p>
            @enderror
        </div>

        <div class="form-group">
            <label for="password_confirmation">Confirm password</label>
            <input id="password_confirmation" type="password" name="password_confirmation"
                   class="form-control" required autocomplete="new-password" placeholder="••••••••">
        </div>

        <button type="submit" class="btn btn-primary btn-block">Reset password</button>
    </form>
@endsection
