@extends('layouts.auth')

@section('title', 'Choose New Password | Smart Dermatology')
@section('subtitle', 'Set a new password for your account.')

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

        <div class="mb-3">
            <label for="email" class="form-label">Email Address</label>
            <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ $email ?? old('email') }}" required autocomplete="email" autofocus>
            @error('email') <span class="invalid-feedback d-block"><strong>{{ $message }}</strong></span> @enderror
        </div>
        <div class="mb-3">
            <label for="password" class="form-label">New Password</label>
            <input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="new-password">
            @error('password') <span class="invalid-feedback d-block"><strong>{{ $message }}</strong></span> @enderror
        </div>
        <div class="mb-4">
            <label for="password-confirm" class="form-label">Confirm Password</label>
            <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
        </div>
        <button type="submit" class="btn btn-pink w-100 py-3 fw-bold">Reset Password</button>
    </form>
@endsection
