@extends('layouts.app')

@section('content')
<div class="auth-login-page">
    <div class="auth-login-card">
        <div class="row g-0">
            <div class="col-lg-6 d-none d-lg-block">
                <div class="auth-login-left">
                    <div class="auth-login-left-content">
                       <h2 class="fw-light mb-1">Sistema,</h2>
                        <h2 class="fw-light mb-0">de gestion</h2>
                    </div>
                </div>
            </div>

            <div class="col-lg-6">
                <div class="auth-login-right">
                    <h1 class="h2 mb-2">{{ __('Iniciar sesión') }}</h1>
                    <p class="text-muted mb-4">{{ __('Ingresa con tu cuenta para continuar') }}</p>

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

                        <div class="mb-3">
                            <label for="email" class="form-label">{{ __('Correo electrónico') }}</label>
                            <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus placeholder="tu@email.com">

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

                        <div class="mb-3">
                            <label for="password" class="form-label">{{ __('Contraseña') }}</label>
                            <input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password" placeholder="********">

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

                        <div class="d-flex justify-content-between align-items-center mb-4">
                            <div class="form-check">
                                <input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
                                <label class="form-check-label" for="remember">
                                    {{ __('Recordarme') }}
                                </label>
                            </div>

                            @if (Route::has('password.request'))
                                <a href="{{ route('password.request') }}" class="small">{{ __('¿Olvidaste tu contraseña?') }}</a>
                            @endif
                        </div>

                        <button type="submit" class="btn btn-primary w-100 auth-login-submit">
                            {{ __('Entrar') }}
                        </button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
