@extends('layouts.auth')

@section('content')
<div class="container d-flex justify-content-center align-items-center" style="min-height: 100vh;">

    <div class="col-lg-6">

        <div class="card o-hidden border-0 shadow-lg">
            <div class="card-body p-0">
                <!-- Card Body Content -->
                <div class="p-5">
                    <div class="text-center">
                        <!-- Logo -->
                        <img src="{{ asset('assets/img/logo.JPG') }}" alt="Logo" class="mb-4" style="max-width: 150px;">
                        <h1 class="h4 text-gray-900 mb-4">MELSOFT QUANTA</h1>
                    </div>


                    <form method="POST" action="{{ route('register') }}">
                        @csrf


                        <div class="row mb-3">
                            <label for="name" class="col-md-4 col-form-label text-md-end">{{ __('Name') }}</label>

                            <div class="form-group">
                                <input id="name" type="text" class="form-control @error('name') is-invalid @enderror"
                                    name="name" value="{{ old('name') }}" required autocomplete="name" autofocus>

                                @error('name')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                                @enderror
                            </div>
                        </div>

                        <div class="row mb-3">
                            <label for="email"
                                class="col-md-4 col-form-label text-md-end">{{ __('Email Address') }}</label>

                            <div class="form-group">
                                <input id="email" type="email" class="form-control @error('email') is-invalid @enderror"
                                    name="email" value="{{ old('email') }}" required autocomplete="email">

                                @error('email')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                                @enderror
                            </div>
                        </div>

                        <div class="row mb-3">
                            <label for="password"
                                class="col-md-4 col-form-label text-md-end">{{ __('Password') }}</label>

                            <div class="form-group">
                                <input id="password" type="password"
                                    class="form-control @error('password') is-invalid @enderror" name="password"
                                    required autocomplete="new-password">

                                @error('password')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                                @enderror
                            </div>
                        </div>

                        <div class="row mb-3">
                            <label for="password-confirm"
                                class="col-md-4 col-form-label text-md-end">{{ __('Confirm Password') }}</label>

                            <div class="form-group">
                                <input id="password-confirm" type="password" class="form-control"
                                    name="password_confirmation" required autocomplete="new-password">
                            </div>
                        </div>

                        <div class="row mb-0">
                            <div class="col-md-6 offset-md-4">
                                <button type="submit" class="btn btn-primary">
                                    {{ __('Register') }}
                                </button>
                            </div>
                        </div>
                    </form>

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

    </div>

</div>
@endsection
