@extends('layouts.auth')

@section('title', 'Login')

@section('content')
<div class="card shadow border border-secondary bg-dark text-white"> {{-- Tambahkan background hitam dan teks putih --}}
    <div class="card-header bg-black text-white text-center">
        <h4>Masjid</h4>
    </div>
    <div class="card-body">
        <form method="POST" action="{{ route('login') }}">
            @csrf

            <div class="mb-3">
                <label for="email" class="form-label text-white">Email</label>
                <input type="email"
                       class="form-control @error('email') is-invalid @enderror"
                       id="email"
                       name="email"
                       value="{{ old('email') }}"
                       required autofocus>
                @error('email')
                    <div class="invalid-feedback">{{ $message }}</div>
                @enderror
            </div>

            <div class="mb-3">
                <label for="password" class="form-label text-white">Password</label>
                <input type="password"
                       class="form-control @error('password') is-invalid @enderror"
                       id="password"
                       name="password"
                       required>
                @error('password')
                    <div class="invalid-feedback">{{ $message }}</div>
                @enderror
            </div>

            <button type="submit" class="btn w-100" style="background-color: #6c757d; color: white;">Login</button>
        </form>
        
        <div class="mt-3 text-center text-white">
            Belum punya akun? <a href="{{ route('register') }}" class="text-info">Register</a>
        </div>

    </div>
</div>
@endsection
