@extends('layouts.auth')

@section('content')
<div class="container-fluid d-flex justify-content-center align-items-center" style="min-height:100vh;">
    <div class="col-lg-4">
        <div class="card p-5" style="border-radius: 15px; background: linear-gradient(135deg,#e8f5e9,#c8e6c9);">
            <div class="text-center">
                <img src="{{ asset('assets/img/logo.png') }}" alt="Logo" class="mb-4" style="max-width: 150px;">
                <h1 class="h4 text-gray-900 mb-4" style="color: #2e7d32; font-weight: 600;">Melsoft Quanta</h1>
            </div>
            <h4 class="text-center mb-4" style="color:#2e7d32;">Reset Password</h4>

            @if(session('status'))
                <div class="alert alert-success">{{ session('status') }}</div>
            @endif

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

                <div class="form-group mb-3">
                    <label>Email</label>
                    <input type="email" name="email" class="form-control" value="{{ old('email') }}" required autofocus>
                    @error('email') <small class="text-danger">{{ $message }}</small> @enderror
                </div>

                <div class="form-group mb-3">
                    <label>New Password</label>
                    <input type="password" name="password" class="form-control" required>
                    @error('password') <small class="text-danger">{{ $message }}</small> @enderror
                </div>

                <div class="form-group mb-3">
                    <label>Confirm Password</label>
                    <input type="password" name="password_confirmation" class="form-control" required>
                </div>

                <button type="submit" class="btn btn-block" style="background-color:#4caf50;color:white;">Reset Password</button>
            </form>

            <div class="auth-legal-links" style="text-align:center; margin-top:1.5rem; font-size:13px; opacity:.7;">
                By continuing, you agree to our
                <a href="{{ route('terms') }}" target="_blank" style="color:#2e7d32; font-weight:500;">Terms of Service</a>
                and
                <a href="{{ route('privacy') }}" target="_blank" style="color:#2e7d32; font-weight:500;">Privacy Policy</a>.
            </div>
        </div>
    </div>
</div>
@endsection
