<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
    <style>
        body {
            background: linear-gradient(135deg, #6e8efb, #a777e3);
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        }
        .login-container {
            background: #fff;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            max-width: 400px;
            width: 100%;
            text-align: center;
            margin: 0 1rem;
        }
        .login-container h1 {
            margin-bottom: 1.5rem;
            font-size: 2rem;
            color: #333;
        }
        .form-control {
            margin-bottom: 1rem;
            border-radius: 30px;
        }
        .btn-custom {
            background: #6e8efb;
            border: none;
            border-radius: 30px;
            padding: 0.75rem 1.5rem;
            color: #fff;
            transition: background 0.3s;
            width: 100%;
        }
        .btn-custom:hover {
            background: #a777e3;
        }
        .forgot-password {
            display: block;
            margin-top: 1rem;
            color: #6e8efb;
            text-decoration: none;
        }
        .forgot-password:hover {
            text-decoration: underline;
        }
        .divider {
            margin: 1.5rem 0;
            display: flex;
            align-items: center;
            text-align: center;
        }
        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid #ddd;
        }
        .divider::before {
            margin-right: .5em;
        }
        .divider::after {
            margin-left: .5em;
        }
        .btn-register {
            background: #4285F4;
            color: white;
            border: none;
            border-radius: 30px;
            padding: 0.75rem 1.5rem;
            margin-top: 1rem;
            width: 100%;
        }
        .btn-register:hover {
            background: #357ae8;
        }
        .btn-register i {
            margin-right: 0.5rem;
        }
        @media (max-width: 576px) {
            .login-container {
                padding: 1rem;
            }
            .login-container h1 {
                font-size: 1.5rem;
            }
            .btn-custom, .btn-register {
                padding: 0.5rem 1rem;
            }
        }
    </style>
</head>
<body>
    <div class="login-container">
        <h1>Login</h1>
        @if ($errors->any())
            <div class="alert alert-danger">
                <ul>
                    @foreach ($errors->all() as $error)
                        <li>{{ $error }}</li>
                    @endforeach
                </ul>
            </div>
        @endif
        <form action="{{ route('login') }}" method="POST">
            @csrf
            <div class="mb-3">
                <input type="email" class="form-control" id="email" name="email" placeholder="Email" required>
            </div>
            <div class="mb-3">
                <input type="password" class="form-control" id="password" name="password" placeholder="Password" required>
            </div>
            <button type="submit" class="btn btn-custom">Login</button>
        </form>
        <div class="divider">Belum Punya Akun ?</div>
        <a href="{{ route('register') }}" class="btn btn-register">
            <i class="fas fa-user-plus"></i> Daftar
        </a>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/js/all.min.js"></script>
</body>
</html>
