<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Reset Password</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">

    <style>
        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(to right, #f6f8fc, #e8f0fe);
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-card {
            background-color: #ffffff;
            padding: 40px 35px;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            width: 100%;
            max-width: 420px;
        }

        .login-title {
            text-align: center;
            font-size: 26px;
            font-weight: 600;
            color: #2f3542;
            margin-bottom: 10px;
        }

        .login-subtitle {
            text-align: center;
            font-size: 14px;
            color: #57606f;
            margin-bottom: 25px;
        }

        .form-label {
            font-weight: 500;
            color: #2f3542;
        }

        .form-control {
            border-radius: 10px;
            padding: 10px;
            font-size: 15px;
            border: 1px solid #ced6e0;
        }

        .btn-login {
            background-color: #4c83ff;
            border: none;
            border-radius: 10px;
            color: #fff;
            padding: 12px;
            font-weight: 600;
            width: 100%;
            transition: 0.3s ease;
        }

        .btn-login:hover {
            background-color: #3a6ee8;
        }

        .form-footer {
            text-align: center;
            font-size: 14px;
            margin-top: 20px;
            color: #57606f;
        }

        .form-footer a {
            color: #4c83ff;
            text-decoration: none;
        }

        .form-footer a:hover {
            text-decoration: underline;
        }

        .logo {
            width: 60px;
            display: block;
            margin: 0 auto 15px;
        }
    </style>
</head>

<body class="d-flex align-items-center justify-content-center vh-100 bg-light">

    <div class="login-card">

        <img src="{{ asset('/img/logo.jpeg') }}" alt="Logo" class="mb-3 mx-auto d-block"
            style="width: 200px; height: auto; border-radius: 8px;">
        <h2 class="login-title">Reset Your Password</h2>
        <p class="login-subtitle">Enter a new password below to reset</p>

        <!-- Status Message -->
        @if (session('status'))
            <div class="alert alert-success">{{ session('status') }}</div>
        @endif

        <!-- Error Messages -->
        @if ($errors->any())
            <div class="alert alert-danger">
                <ul class="mb-0">
                    @foreach ($errors->all() as $error)
                        <li>{{ $error }}</li>
                    @endforeach
                </ul>
            </div>
        @endif

        <!-- Reset Password Form -->
        <form action="{{ route('password.update') }}" method="POST">
            @csrf
            <input type="hidden" name="token" value="{{ $token }}">
            <input type="hidden" name="email" value="{{ $email }}">

            <div class="mb-3">
                <label for="password" class="form-label">New Password</label>
                <input type="password" name="password" class="form-control" id="password"
                    placeholder="••••••••" required>
            </div>

            <div class="mb-3">
                <label for="password_confirmation" class="form-label">Confirm Password</label>
                <input type="password" name="password_confirmation" class="form-control"
                    id="password_confirmation" placeholder="••••••••" required>
            </div>

            <button type="submit" class="btn btn-login">Reset Password</button>
        </form>

        <div class="form-footer mt-3">
            <a href="{{ route('login') }}">Back to Login</a>
        </div>
    </div>

    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>

</html>
