@extends('layouts.auth')

@section('content')
    <div class="login-container">
        <div class="login-background">
            <div class="floating-elements">
                <div class="floating-element"></div>
                <div class="floating-element"></div>
                <div class="floating-element"></div>
                <div class="floating-element"></div>
            </div>
        </div>

        <div class="login-card-wrapper">
            <div class="login-card">
                <div class="login-header">
                    <div class="logo-container">
                        <img src="{{ asset('images/logo-black.png') }}" alt="SMK Muhammadiyah 1 Berbek" class="login-logo">
                    </div>
                    <h2 class="login-title">Lupa Password</h2>
                    <p class="login-subtitle">Masukkan email terdaftar untuk mengubah password Anda</p>
                </div>

                <form class="login-form" method="POST" action="{{ route('password.email') }}">
                    @csrf

                    <div class="form-group">
                        <label for="email" class="form-label">Email</label>
                        <div class="input-group">
                            <input type="email" class="form-control @error('email') is-invalid @enderror" id="email"
                                name="email" placeholder="Masukkan email terdaftar" value="{{ old('email') }}" required>
                            @error('email')
                                <div class="invalid-feedback">{{ $message }}</div>
                            @enderror
                        </div>
                    </div>

                    <button type="submit" class="login-btn">
                        <span class="btn-text">Verifikasi Email</span>
                        <i class="fas fa-arrow-right btn-icon"></i>
                    </button>

                    <div class="back-to-home">
                        <a href="{{ route('login') }}" class="back-btn text-decoration-none">
                            <i class="fas fa-chevron-left"></i>
                            <span>Kembali ke Login</span>
                        </a>
                    </div>
                </form>
            </div>
        </div>
    </div>
@endsection
