<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Login - Store</title>
    <link rel="preconnect" href="https://fonts.bunny.net">
    <link href="https://fonts.bunny.net/css?family=dm-sans:300,400,500,600,700" rel="stylesheet" />
    <style>
        :root {
            --cream: #faf7f2;
            --dark: #1c1917;
            --accent: #c8a96e;
            --accent-dark: #a07840;
            --muted: #78716c;
            --border: #e7e0d8;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--cream);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 2rem;
        }
        .card {
            background: white;
            border-radius: 1.25rem;
            border: 1px solid var(--border);
            box-shadow: 0 16px 48px -8px rgba(28,25,23,0.1);
            padding: 2.75rem;
            width: 100%;
            max-width: 420px;
        }
        .logo-section {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            margin-bottom: 2rem;
        }
        .logo-icon {
            width: 38px;
            height: 38px;
            background: var(--dark);
            border-radius: 0.6rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .logo-icon svg { width: 18px; height: 18px; }
        .logo-name { font-size: 1.1rem; font-weight: 700; color: var(--dark); }

        .form-header { margin-bottom: 1.75rem; }
        .form-header h2 { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 0.25rem; }
        .form-header p { color: var(--muted); font-size: 0.88rem; }

        .alert-error {
            background: #fef2f2; border: 1px solid #fecaca; border-radius: 0.5rem;
            padding: 0.7rem 0.9rem; margin-bottom: 1.25rem; font-size: 0.83rem; color: #dc2626;
        }
        .alert-success {
            background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 0.5rem;
            padding: 0.7rem 0.9rem; margin-bottom: 1.25rem; font-size: 0.83rem; color: #16a34a;
        }

        .form-group { margin-bottom: 1.1rem; }
        .form-label { display: block; font-weight: 600; font-size: 0.83rem; color: var(--dark); margin-bottom: 0.4rem; }
        .form-input {
            width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border);
            border-radius: 0.6rem; font-size: 0.93rem; font-family: 'DM Sans', sans-serif;
            background: var(--cream); color: var(--dark); transition: border-color 0.2s, box-shadow 0.2s;
        }
        .form-input:focus { outline: none; border-color: var(--accent); background: white; box-shadow: 0 0 0 3px rgba(200,169,110,0.13); }
        .form-input.error { border-color: #f87171; }
        .field-error { font-size: 0.77rem; color: #dc2626; margin-top: 0.3rem; }

        .password-wrapper { position: relative; }
        .password-wrapper .form-input { padding-right: 2.75rem; }
        .toggle-password {
            position: absolute; right: 0.85rem; top: 50%; transform: translateY(-50%);
            background: none; border: none; cursor: pointer; color: var(--muted); display: flex; align-items: center;
        }
        .toggle-password:hover { color: var(--dark); }
        .toggle-password svg { width: 17px; height: 17px; }

        .remember-forgot {
            display: flex; justify-content: space-between; align-items: center;
            margin: 1.25rem 0 1.5rem; font-size: 0.83rem;
        }
        .remember-me { display: flex; align-items: center; gap: 0.45rem; }
        .remember-me input { accent-color: var(--accent); }
        .remember-me label { color: var(--muted); cursor: pointer; }
        .forgot-link { color: var(--accent-dark); text-decoration: none; font-weight: 600; }
        .forgot-link:hover { text-decoration: underline; }

        .btn-primary {
            width: 100%; padding: 0.85rem; background: var(--dark); color: white;
            border: none; border-radius: 0.6rem; font-size: 0.92rem; font-weight: 700;
            font-family: 'DM Sans', sans-serif; cursor: pointer;
            transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
        }
        .btn-primary:hover { background: #2d2a28; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(28,25,23,0.18); }

        .register-link { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--muted); }
        .register-link a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
        .register-link a:hover { text-decoration: underline; }
    </style>
</head>
<body>
    <div class="card">
        <div class="logo-section">
            <div class="logo-icon">
                <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <path d="M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z" stroke="#c8a96e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
                    <line x1="3" y1="6" x2="21" y2="6" stroke="#c8a96e" stroke-width="2" stroke-linecap="round"/>
                    <path d="M16 10a4 4 0 01-8 0" stroke="#c8a96e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
                </svg>
            </div>
            <span class="logo-name">Store</span>
        </div>

        <div class="form-header">
            <h2>Selamat Datang</h2>
            <p>Masuk untuk melanjutkan belanja Anda.</p>
        </div>

        <?php if(session('status')): ?>
            <div class="alert-success"><?php echo e(session('status')); ?></div>
        <?php endif; ?>

        <form method="POST" action="<?php echo e(route('login')); ?>">
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <label for="email" class="form-label">Email</label>
                <input id="email" class="form-input <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" type="email" name="email" value="<?php echo e(old('email')); ?>" required autofocus />
                <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="field-error"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>

            <div class="form-group">
                <label for="password" class="form-label">Password</label>
                <div class="password-wrapper">
                    <input id="password" class="form-input <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" type="password" name="password" required />
                    <button type="button" class="toggle-password" onclick="togglePwd()">
                        <svg id="eye-on" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>
                        <svg id="eye-off" style="display:none" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"/><line x1="1" y1="1" x2="23" y2="23"/></svg>
                    </button>
                </div>
                <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="field-error"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>

            <div class="remember-forgot">
                <div class="remember-me">
                    <input id="remember_me" type="checkbox" name="remember">
                    <label for="remember_me">Ingat saya</label>
                </div>
                <?php if(Route::has('password.request')): ?>
                    <a href="<?php echo e(route('password.request')); ?>" class="forgot-link">Lupa Password?</a>
                <?php endif; ?>
            </div>

            <button type="submit" class="btn-primary">Masuk ke Akun</button>
        </form>

        <div class="register-link">
            Belum punya akun? <a href="<?php echo e(route('register')); ?>">Daftar Sekarang</a>
        </div>
    </div>

    <script>
        function togglePwd() {
            const f = document.getElementById('password');
            const on = document.getElementById('eye-on');
            const off = document.getElementById('eye-off');
            if (f.type === 'password') { f.type = 'text'; on.style.display = 'none'; off.style.display = 'block'; }
            else { f.type = 'password'; on.style.display = 'block'; off.style.display = 'none'; }
        }
    </script>
</body>
</html><?php /**PATH C:\laragon\www\toko_ku\resources\views/auth/login.blade.php ENDPATH**/ ?>