<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Portal Petugas | Otomotif PPLG</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --bg-color: #080710;
            --card-bg: rgba(25, 18, 38, 0.55);
            --primary: #9d4edd;
            --primary-light: #c77dff;
            --primary-glow: rgba(157, 78, 221, 0.3);
            --text-main: #f8f7ff;
            --text-muted: #b3b0cb;
            --border-color: rgba(199, 125, 255, 0.18);
            --font-family: 'Outfit', sans-serif;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--font-family);
            background-color: var(--bg-color);
            background-image: 
                radial-gradient(circle at 85% 15%, rgba(157, 78, 221, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 15% 85%, rgba(199, 125, 255, 0.08) 0%, transparent 45%),
                linear-gradient(rgba(8, 7, 16, 0.96), rgba(8, 7, 16, 0.96));
            color: var(--text-main);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow-x: hidden;
            position: relative;
            padding: 20px;
        }

        .glow-orb {
            position: absolute;
            width: 320px;
            height: 320px;
            background: var(--primary);
            filter: blur(130px);
            border-radius: 50%;
            opacity: 0.14;
            z-index: 0;
            pointer-events: none;
            animation: bounce 12s infinite alternate;
        }

        @keyframes bounce {
            0% { transform: translateY(0) scale(1); }
            100% { transform: translateY(30px) scale(1.1); }
        }

        .container {
            width: 100%;
            max-width: 450px;
            z-index: 10;
        }

        .login-card {
            background: var(--card-bg);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border: 1px solid var(--border-color);
            border-radius: 28px;
            padding: 40px 30px;
            box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55), 0 0 35px rgba(157, 78, 221, 0.06);
            position: relative;
            overflow: hidden;
            animation: fadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes fadeIn {
            0% { transform: scale(0.95); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }

        .brand-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .badge {
            background: rgba(199, 125, 255, 0.08);
            color: var(--primary-light);
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 2px;
            padding: 5px 12px;
            border-radius: 50px;
            text-transform: uppercase;
            display: inline-block;
            margin-bottom: 12px;
            border: 1px solid rgba(199, 125, 255, 0.18);
        }

        .brand-header h1 {
            font-size: 2rem;
            font-weight: 800;
            letter-spacing: -0.5px;
            background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 5px;
        }

        .brand-header p {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        /* sliding switcher tabs */
        .tab-switcher {
            display: flex;
            background: rgba(0, 0, 0, 0.25);
            padding: 4px;
            border-radius: 12px;
            margin-bottom: 30px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
        }

        .tab-btn {
            flex: 1;
            background: transparent;
            border: none;
            color: var(--text-muted);
            padding: 12px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            z-index: 2;
            transition: color 0.3s;
            font-family: var(--font-family);
        }

        .tab-btn.active {
            color: #ffffff;
        }

        .tab-backdrop {
            position: absolute;
            top: 4px;
            bottom: 4px;
            left: 4px;
            width: calc(50% - 4px);
            background: linear-gradient(135deg, var(--primary) 0%, #7b2cbf 100%);
            border-radius: 8px;
            z-index: 1;
            transition: transform 0.4s cubic-bezier(0.85, 0, 0.15, 1);
            box-shadow: 0 2px 10px var(--primary-glow);
        }

        /* sliding forms container */
        .form-slider-viewport {
            overflow: hidden;
            width: 100%;
        }

        .form-slider {
            display: flex;
            width: 200%;
            transition: transform 0.5s cubic-bezier(0.85, 0, 0.15, 1);
        }

        .form-box {
            width: 50%;
            padding: 0 5px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-control {
            width: 100%;
            background: rgba(14, 12, 22, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 12px;
            padding: 14px 16px;
            color: var(--text-main);
            font-size: 0.9rem;
            font-family: var(--font-family);
            transition: all 0.3s;
            outline: none;
        }

        .form-control:focus {
            border-color: var(--primary-light);
            box-shadow: 0 0 15px var(--primary-glow);
            background: rgba(14, 12, 22, 0.95);
        }

        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 22px;
            font-size: 0.8rem;
        }

        .remember-me {
            display: flex;
            align-items: center;
            cursor: pointer;
            color: var(--text-muted);
        }

        .remember-me input {
            margin-right: 8px;
            accent-color: var(--primary-light);
            cursor: pointer;
            width: 15px;
            height: 15px;
        }

        .btn-submit {
            width: 100%;
            background: linear-gradient(135deg, var(--primary) 0%, #7b2cbf 100%);
            color: #ffffff;
            border: none;
            border-radius: 12px;
            padding: 15px;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 18px var(--primary-glow);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-family: var(--font-family);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 22px var(--primary-glow);
            filter: brightness(1.1);
        }

        .alert {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #f87171;
            padding: 12px;
            border-radius: 10px;
            font-size: 0.8rem;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
            animation: shake 0.5s ease-in-out;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-5px); }
            40%, 80% { transform: translateX(5px); }
        }

        .alert-success {
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            color: #34d399;
            padding: 12px;
            border-radius: 10px;
            font-size: 0.8rem;
            margin-bottom: 18px;
        }

        .back-link {
            display: block;
            text-align: center;
            margin-top: 25px;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.8rem;
            transition: color 0.3s;
        }

        .back-link:hover {
            color: #ffffff;
        }

        @media (max-width: 480px) {
            .login-card {
                padding: 30px 20px;
                border-radius: 20px;
            }
            .brand-header h1 {
                font-size: 1.7rem;
            }
            .brand-header p {
                font-size: 0.8rem;
            }
            .tab-btn {
                padding: 10px;
                font-size: 0.85rem;
            }
            .form-control {
                padding: 11px 13px;
                font-size: 0.85rem;
            }
            .btn-submit {
                padding: 13px;
                font-size: 0.85rem;
            }
        }

        @media (max-width: 380px) {
            .login-card {
                padding: 24px 15px;
                border-radius: 16px;
            }
            .brand-header h1 {
                font-size: 1.5rem;
            }
        }
    </style>
</head>
<body>
    <div class="glow-orb" style="top: 35%; right: 25%;"></div>
    
    <div class="container">
        <div class="login-card">
            <div class="brand-header">
                <span class="badge">Portal Petugas</span>
                <h1>Staff Area</h1>
                <p>Silakan masuk atau daftar sebagai petugas</p>
            </div>

            <!-- Session & Error Alerts -->
            <?php if(session('error')): ?>
                <div class="alert">
                    <span><?php echo e(session('error')); ?></span>
                </div>
            <?php endif; ?>

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

            <?php if($errors->any()): ?>
                <div class="alert">
                    <span><?php echo e($errors->first()); ?></span>
                </div>
            <?php endif; ?>

            <!-- LOGIN FORM -->
            <div style="margin-top: 20px;">
                <form action="<?php echo e(route('petugas.login.submit')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <div class="form-group">
                        <label class="form-label" for="login_username">Username</label>
                        <input type="text" id="login_username" name="username" class="form-control" placeholder="Masukkan username" value="<?php echo e(old('username')); ?>" required autocomplete="off">
                    </div>

                    <div class="form-group">
                        <label class="form-label" for="login_password">Password</label>
                        <input type="password" id="login_password" name="password" class="form-control" placeholder="Masukkan password" required>
                    </div>

                    <div class="form-options">
                        <label class="remember-me">
                            <input type="checkbox" name="remember" value="1">
                            <span>Ingat saya</span>
                        </label>
                    </div>

                    <button type="submit" class="btn-submit">
                        <span>Masuk Aplikasi <i class="fa-solid fa-right-to-bracket" style="margin-left: 6px;"></i></span>
                    </button>
                </form>
            </div>

            <a href="/" class="back-link">
                <i class="fa-solid fa-arrow-left" style="margin-right: 6px;"></i> Kembali ke Beranda
            </a>
        </div>
    </div>
</body>
</html>
<?php /**PATH D:\laragon\www\Otomotif_by_PPLG\resources\views/auth/petugas.blade.php ENDPATH**/ ?>