@extends('theme::layouts.auth')

@section('title', 'Pamiršote slaptažodį?')

@section('content')
<h1>Pamiršote slaptažodį?</h1>
<p class="subtitle">Įveskite savo el. paštą — atsiųsime naujo slaptažodžio nustatymo nuorodą</p>

{{-- "We've emailed your password reset link!" — Password broker's standard status message --}}
@if (session('status'))
    <div class="auth-alert success">
        <i class="bi bi-envelope-check-fill me-1"></i> {{ session('status') }}
    </div>
@endif

<form method="POST" action="{{ route(cms_route_name_for_current_locale(cms_current_environment() . '.auth.password.email')) }}" id="forgotForm" novalidate>
    @csrf

    <div class="mb-3">
        <label for="email" class="form-label">El. paštas</label>
        <input type="email" id="email" name="email" value="{{ old('email') }}"
               class="form-control @error('email') is-invalid @enderror"
               required autocomplete="email" autofocus>
        @error('email')
            <div class="invalid-feedback d-block">{{ $message }}</div>
        @enderror
    </div>

    <button type="submit" class="btn-brand">Siųsti nuorodą</button>
</form>

<div class="divider"></div>

<div class="meta-link">
    <a href="{{ route(cms_route_name_for_current_locale(cms_current_environment() . '.auth.login')) }}">
        <i class="bi bi-arrow-left me-1"></i> Grįžti į prisijungimą
    </a>
</div>
@endsection
