@extends('layouts.auth')

@section('title', 'Register | Smart Dermatology')
@section('subtitle', 'Create your account to access the user panel.')

@section('content')
    <div class="text-center mb-4">
        <h3 class="fw-bold">Create Account</h3>
    </div>

    <form method="POST" action="{{ route('register') }}">
        @csrf
        <div class="mb-3">
            <label for="name" class="form-label">Full Name</label>
            <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 d-block"><strong>{{ $message }}</strong></span> @enderror
        </div>
        <div class="mb-3">
            <label for="email" class="form-label">Email Address</label>
            <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 d-block"><strong>{{ $message }}</strong></span> @enderror
        </div>
        <div class="mb-3">
            <label for="password" class="form-label">Create Password</label>
            <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 d-block"><strong>{{ $message }}</strong></span> @enderror
        </div>
        <div class="mb-4">
            <label for="password-confirm" class="form-label">Confirm Password</label>
            <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
        </div>
        <button type="submit" class="btn btn-pink w-100 py-3 fw-bold mb-3">Sign Up</button>
    </form>

    <p class="text-center text-muted small mb-0">Already registered? <a class="auth-link" href="{{ route('login') }}">Sign in</a></p>
@endsection
