@extends('layouts.admin')
@section('title', 'Alterar password')
@section('content')
<div class="page-header"><h1>Alterar password</h1><p class="subtitle">A sua password deve ser alterada antes de continuar.</p></div>
<div class="card" style="max-width: 500px;">
    <form method="POST" action="{{ route('admin.password.change.submit') }}">
        @csrf
        <div class="form-group">
            <label class="form-label">Password atual</label>
            <input type="password" name="current_password" class="form-control" required>
            @error('current_password') <div class="form-error">{{ $message }}</div> @enderror
        </div>
        <div class="form-group">
            <label class="form-label">Nova password</label>
            <input type="password" name="password" class="form-control" required>
            <small style="color: var(--muted);">Mínimo 10 caracteres com maiúsculas, minúsculas, números e caracteres especiais.</small>
            @error('password') <div class="form-error">{{ $message }}</div> @enderror
        </div>
        <div class="form-group">
            <label class="form-label">Confirmar nova password</label>
            <input type="password" name="password_confirmation" class="form-control" required>
        </div>
        <button type="submit" class="btn btn-primary">Alterar password</button>
    </form>
</div>
@endsection
