﻿        :root {
            --primary-color: #4F46E5;
            --primary-hover: #4338CA;
            --surface-color: rgba(255, 255, 255, 0.85);
            --bg-color: #0F172A;
            --text-main: #1E293B;
            --text-muted: #64748B;
        }

        /* Sembunyikan icon mata bawaan browser (Edge/Chrome/Safari) */
        input::-ms-reveal,
        input::-ms-clear,
        input::-webkit-contacts-auto-fill-button,
        input::-webkit-credentials-auto-fill-button {
            display: none !important;
        }

        body {
            font-family: 'Outfit', sans-serif;
            background: var(--bg-color);
            <?php if (!empty($page_login_bg) && file_exists(dirname(dirname(__DIR__)) . '/' . $page_login_bg)): ?>
                background-image: url('../../<?= htmlspecialchars($page_login_bg) ?>');
            <?php else: ?>
                background-image: 
                    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.3) 0px, transparent 50%),
                    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.2) 0px, transparent 50%);
            <?php endif; ?>
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            overflow: hidden;
        }

        /* Abstract Background Shapes */
        .shape-blob {
            background: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
            height: 400px;
            width: 400px;
            border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
            position: absolute;
            animation: morph 8s ease-in-out infinite;
            z-index: 0;
            opacity: 0.6;
            filter: blur(40px);
        }
        .shape-1 { top: -10%; left: -10%; animation-delay: 0s; }
        .shape-2 { bottom: -10%; right: -10%; background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%); animation-delay: 2s; }

        @keyframes morph {
            0%, 100% { border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%; }
            34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
            67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
        }

        .login-wrapper {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 450px;
            padding: 20px;
        }

        .glass-card {
            position: relative;
            background: var(--surface-color);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: 20px;
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
            padding: 2rem 1.75rem;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .settings-gear {
            position: absolute;
            top: 20px;
            right: 20px;
            color: var(--text-muted);
            font-size: 1.35rem;
            transition: all 0.3s ease;
            cursor: pointer;
            z-index: 100;
        }

        .settings-gear:hover {
            color: var(--primary-color) !important;
            transform: rotate(90deg);
        }

        .glass-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
        }

        .brand-icon {
            width: 110px;
            height: 110px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 0.75rem;
            color: var(--primary-color);
            font-size: 3rem;
            transition: transform 0.3s ease;
        }

        .glass-card:hover .brand-icon {
            transform: scale(1.05);
        }

        .title {
            color: var(--text-main);
            font-weight: 700;
            letter-spacing: -0.5px;
            margin-bottom: 0.15rem;
            font-size: 1.25rem;
        }

        .subtitle {
            color: var(--text-muted);
            font-size: 0.85rem;
            font-weight: 500;
            letter-spacing: 0px;
            margin-bottom: 1.25rem;
        }

        .form-floating > .form-control {
            border-radius: 12px;
            border: 2px solid rgba(226, 232, 240, 0.8);
            background: rgba(255, 255, 255, 0.9);
            padding: 0.75rem 1rem;
            height: 52px;
            font-size: 0.95rem;
            color: var(--text-main);
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .form-floating > .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
            background: #ffffff;
        }

        .form-floating > label {
            padding: 0.75rem 1rem;
            color: var(--text-muted);
            font-weight: 500;
            font-size: 0.9rem;
        }

        .input-group-text.password-toggle {
            background: transparent;
            border: none;
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
            cursor: pointer;
            color: var(--text-muted);
            transition: color 0.2s;
        }

        .input-group-text.password-toggle:hover {
            color: var(--primary-color);
        }

        .btn-login {
            background: linear-gradient(135deg, var(--primary-color), #0EA5E9);
            border: none;
            border-radius: 12px;
            padding: 0.75rem;
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            color: white;
            width: 100%;
            transition: all 0.3s ease;
            box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.3);
            position: relative;
            overflow: hidden;
        }

        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.5);
            color: white;
        }

        .btn-login::after {
            content: '';
            position: absolute;
            top: 0; left: -100%; width: 50%; height: 100%;
            background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
            transform: skewX(-25deg);
            animation: shine 6s infinite;
        }

        @keyframes shine {
            0% { left: -100%; }
            20% { left: 200%; }
            100% { left: 200%; }
        }

        .alert-custom {
            border-radius: 12px;
            border: none;
            font-size: 0.9rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            background: rgba(239, 68, 68, 0.1);
            color: #DC2626;
            backdrop-filter: blur(10px);
        }

        .system-badge {
            position: absolute;
            bottom: 20px;
            left: 0;
            width: 100%;
            text-align: center;
            color: rgba(255,255,255,0.5);
            font-size: 0.85rem;
            font-weight: 500;
            letter-spacing: 1px;
        }
    </style>
