@extends('layouts.app')

@section('content')
<div class="auth p-2">
    <div class="title-page mb-2">{{ __('Reset Password') }}</div>

    <form method="POST" action="{{ route('password.update') }}">
        @csrf

        <input type="hidden" name="token" value="{{ $token }}">

        <label for="email" class="mb-1">{{ __('E-Mail') }}</label>
        <div class="mb-2">
            <input id="email" type="email" class="@error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
            @error('email')
                <span class="invalid-feedback" role="alert">
                    <strong>{{ $message }}</strong>
                </span>
            @enderror
        </div>

        <label for="password" class="mb-1">{{ __('Password') }}</label>
        <div class="mb-2">
            <input id="password" type="password" class="@error('password') is-invalid @enderror" name="password" required autocomplete="current-password">

            @error('password')
            <span class="invalid-feedback" role="alert">
                <strong>{{ $message }}</strong>
            </span>
            @enderror
        </div>

        <label for="password-confirm" class="mb-1">{{ __('Confirm Password') }}</label>
        <div class="mb-2">
            <input id="password-confirm" type="password" name="password_confirmation" required autocomplete="new-password">
        </div>

        <div class="flex-between">
            <button type="submit" class="btn-primary px-3 w-100">
                {{ __('Reset Password') }}
            </button>
        </div>
    </form>

</div>
@endsection
