/* === CSS Variables === */
        :root {
            --bg-dark: #0a1a12;
            --bg-mid: #0f2918;
            --primary: #1a8c4e;
            --primary-light: #22b862;
            --primary-glow: rgba(26, 140, 78, 0.35);
            --accent: #2dd47a;
            --accent-gold: #c8a44e;
            --card-bg: rgba(255, 255, 255, 0.04);
            --card-border: rgba(255, 255, 255, 0.08);
            --card-border-hover: rgba(45, 212, 122, 0.2);
            --text-primary: #f0f7f3;
            --text-secondary: rgba(240, 247, 243, 0.55);
            --text-muted: rgba(240, 247, 243, 0.3);
            --input-bg: rgba(255, 255, 255, 0.06);
            --input-border: rgba(255, 255, 255, 0.1);
            --input-focus: rgba(45, 212, 122, 0.4);
            --danger: #e74c4c;
            --success: #2dd47a;
        }

        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
            overflow: hidden;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background: var(--bg-dark);
            color: var(--text-primary);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* === Animated Background === */
        .bg-scene {
            position: fixed;
            inset: 0;
            z-index: 0;
            overflow: hidden;
        }

        .bg-gradient {
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(ellipse 80% 60% at 20% 80%, rgba(26, 140, 78, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse 60% 50% at 80% 20%, rgba(26, 100, 58, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse 90% 70% at 50% 50%, rgba(10, 26, 18, 1) 0%, rgba(10, 26, 18, 1) 100%);
        }

        .bg-grid {
            position: absolute;
            inset: 0;
            background-image: 
                linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
            background-size: 60px 60px;
            mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
            -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
        }

        .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            animation: orbFloat 12s ease-in-out infinite;
        }

        .orb-1 {
            width: 400px; height: 400px;
            background: rgba(26, 140, 78, 0.12);
            top: -10%; right: -5%;
        }

        .orb-2 {
            width: 300px; height: 300px;
            background: rgba(45, 212, 122, 0.08);
            bottom: -8%; left: -5%;
            animation-delay: -4s;
        }

        .orb-3 {
            width: 200px; height: 200px;
            background: rgba(200, 164, 78, 0.06);
            top: 40%; left: 60%;
            animation-delay: -8s;
        }

        @keyframes orbFloat {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(30px, -20px) scale(1.05); }
            66% { transform: translate(-20px, 15px) scale(0.95); }
        }

        #particles {
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        /* === Main Layout === */
        .login-container {
            position: relative;
            z-index: 10;
            display: flex;
            align-items: stretch;
            width: 920px;
            max-width: 95vw;
            min-height: 580px;
            border-radius: 24px;
            overflow: hidden;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            backdrop-filter: blur(40px);
            -webkit-backdrop-filter: blur(40px);
            box-shadow: 
                0 0 0 1px rgba(255,255,255,0.03) inset,
                0 40px 100px rgba(0,0,0,0.5),
                0 0 120px var(--primary-glow);
            animation: containerIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        @keyframes containerIn {
            from { opacity: 0; transform: translateY(30px) scale(0.96); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* === Left Panel === */
        .brand-panel {
            flex: 0 0 380px;
            padding: 40px 36px 36px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            background: linear-gradient(160deg, rgba(26, 140, 78, 0.15) 0%, rgba(10, 26, 18, 0.8) 100%);
            border-right: 1px solid var(--card-border);
        }

        .brand-panel::before {
            content: '';
            position: absolute;
            top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: radial-gradient(circle at 30% 70%, rgba(45, 212, 122, 0.06) 0%, transparent 50%);
            animation: brandGlow 8s ease-in-out infinite alternate;
        }

        @keyframes brandGlow {
            0% { transform: translate(0, 0); }
            100% { transform: translate(20px, -20px); }
        }

        .brand-lines {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 200px;
            overflow: hidden;
            opacity: 0.15;
        }

        .brand-lines span {
            position: absolute;
            bottom: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            animation: lineSweep 6s ease-in-out infinite;
        }

        .brand-lines span:nth-child(1) { left: 10%; width: 60%; bottom: 40px; }
        .brand-lines span:nth-child(2) { left: 20%; width: 40%; bottom: 80px; animation-delay: -2s; }
        .brand-lines span:nth-child(3) { left: 5%; width: 50%; bottom: 120px; animation-delay: -4s; }

        @keyframes lineSweep {
            0%, 100% { opacity: 0; transform: scaleX(0.5); }
            50% { opacity: 1; transform: scaleX(1); }
        }

        .brand-top {
            position: relative;
            z-index: 1;
        }

        .brand-logo {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 36px;
        }

        .logo-icon {
            width: 48px; height: 48px;
            border-radius: 13px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 20%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #fff;
            box-shadow: 0 8px 24px rgba(26, 140, 78, 0.3);
            position: relative;
            overflow: hidden;
        }

        .logo-icon::after {
            content: '';
            position: absolute;
            top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
            animation: logoShine 3s ease-in-out infinite;
        }

        @keyframes logoShine {
            0%, 100% { transform: translateX(-100%) rotate(25deg); }
            50% { transform: translateX(100%) rotate(25deg); }
        }

        .logo-text .name {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 21px;
            font-weight: 700;
            letter-spacing: 2px;
            color: var(--text-primary);
        }

        .logo-text .sub {
            font-size: 10px;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        .brand-heading {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 28px;
            font-weight: 700;
            line-height: 1.25;
            color: var(--text-primary);
            margin-bottom: 12px;
        }

        .brand-heading .highlight {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-gold) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .brand-desc {
            font-size: 13px;
            line-height: 1.7;
            color: var(--text-secondary);
            max-width: 280px;
        }

        /* === Jam & Tanggal Widget === */
        .clock-widget {
            position: relative;
            z-index: 1;
            margin: 28px 0;
            padding: 20px 24px;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
            overflow: hidden;
        }

        .clock-widget::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: linear-gradient(135deg, rgba(45, 212, 122, 0.04) 0%, transparent 60%);
            pointer-events: none;
        }

        .clock-time {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 46px;
            font-weight: 700;
            letter-spacing: 2px;
            color: var(--text-primary);
            line-height: 1;
            position: relative;
            display: flex;
            align-items: baseline;
            gap: 2px;
        }

        .clock-time .colon {
            animation: colonBlink 1s step-end infinite;
            color: var(--accent);
            margin: 0 1px;
        }

        @keyframes colonBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.2; }
        }

        .clock-time .seconds {
            font-size: 22px;
            font-weight: 500;
            color: var(--accent);
            margin-left: 4px;
            min-width: 32px;
        }

        .clock-time .ampm {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-muted);
            margin-left: 6px;
            letter-spacing: 1px;
        }

        .clock-date {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
            font-size: 13px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .clock-date i {
            color: var(--accent);
            font-size: 12px;
            opacity: 0.7;
        }

        .clock-date .day-name {
            color: var(--accent);
            font-weight: 600;
        }

        /* === Brand Bottom === */
        .brand-bottom {
            position: relative;
            z-index: 1;
        }

        .brand-stats {
            display: flex;
            gap: 28px;
        }

        .stat-item { display: flex; flex-direction: column; }

        .stat-num {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 24px;
            font-weight: 700;
            color: var(--accent);
        }

        .stat-label {
            font-size: 10px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 2px;
        }

        /* === Right Panel === */
        .form-panel {
            flex: 1;
            padding: 48px 52px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
        }

        .form-header {
            margin-bottom: 32px;
            animation: fadeSlideUp 0.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .form-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 28px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .form-subtitle {
            font-size: 14px;
            color: var(--text-secondary);
        }

        @keyframes fadeSlideUp {
            from { opacity: 0; transform: translateY(16px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .input-group {
            margin-bottom: 20px;
            animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .input-group:nth-child(1) { animation-delay: 0.3s; }
        .input-group:nth-child(2) { animation-delay: 0.4s; }

        .input-label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-icon {
            position: absolute;
            left: 16px;
            font-size: 15px;
            color: var(--text-muted);
            transition: color 0.3s ease;
            pointer-events: none;
            z-index: 2;
        }

        .input-field {
            width: 100%;
            padding: 14px 16px 14px 46px;
            background: var(--input-bg);
            border: 1.5px solid var(--input-border);
            border-radius: 12px;
            color: var(--text-primary);
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 14px;
            outline: none;
            transition: all 0.3s ease;
        }

        .input-field::placeholder { color: var(--text-muted); }

        .input-field:hover {
            border-color: rgba(255, 255, 255, 0.15);
            background: rgba(255, 255, 255, 0.08);
        }

        .input-field:focus {
            border-color: var(--accent);
            background: rgba(45, 212, 122, 0.04);
            box-shadow: 0 0 0 4px var(--input-focus), 0 0 30px rgba(45, 212, 122, 0.06);
        }

        .input-wrapper:focus-within .input-icon { color: var(--accent); }

        .toggle-password {
            position: absolute;
            right: 14px;
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 4px;
            font-size: 15px;
            transition: color 0.3s ease;
            z-index: 2;
        }

        .toggle-password:hover { color: var(--accent); }

        .options-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
            animation: fadeSlideUp 0.6s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            user-select: none;
        }

        .remember-me input[type="checkbox"] { display: none; }

        .checkmark {
            width: 18px; height: 18px;
            border: 1.5px solid var(--input-border);
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s ease;
            flex-shrink: 0;
        }

        .checkmark i {
            font-size: 10px;
            color: #fff;
            opacity: 0;
            transform: scale(0.5);
            transition: all 0.25s ease;
        }

        .remember-me input:checked + .checkmark {
            background: var(--primary);
            border-color: var(--primary);
            box-shadow: 0 2px 8px rgba(26, 140, 78, 0.3);
        }

        .remember-me input:checked + .checkmark i {
            opacity: 1;
            transform: scale(1);
        }

        .remember-me span:last-child {
            font-size: 13px;
            color: var(--text-secondary);
        }

        .forgot-link {
            font-size: 13px;
            color: var(--accent);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.25s ease;
            position: relative;
        }

        .forgot-link::after {
            content: '';
            position: absolute;
            bottom: -2px; left: 0;
            width: 0; height: 1.5px;
            background: var(--accent);
            transition: width 0.3s ease;
        }

        .forgot-link:hover::after { width: 100%; }

        .btn-signin {
            width: 100%;
            padding: 15px 24px;
            border: none;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: #fff;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 15px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: all 0.35s ease;
            animation: fadeSlideUp 0.6s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
            box-shadow: 0 4px 20px rgba(26, 140, 78, 0.25);
        }

        .btn-signin::before {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
            transition: left 0.5s ease;
        }

        .btn-signin:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 32px rgba(26, 140, 78, 0.4);
        }

        .btn-signin:hover::before { left: 100%; }

        .btn-signin:active {
            transform: translateY(0);
            box-shadow: 0 2px 12px rgba(26, 140, 78, 0.3);
        }

        .btn-signin .btn-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            z-index: 1;
        }

        .btn-signin .spinner {
            display: none;
            width: 20px; height: 20px;
            border: 2.5px solid rgba(255,255,255,0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }

        .btn-signin.loading .btn-text { display: none; }
        .btn-signin.loading .btn-arrow { display: none; }
        .btn-signin.loading .spinner { display: block; }

        @keyframes spin { to { transform: rotate(360deg); } }

        .divider {
            display: flex;
            align-items: center;
            gap: 16px;
            margin: 22px 0;
            animation: fadeSlideUp 0.6s 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--card-border);
        }

        .divider span {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1.5px;
        }

        .form-footer {
            text-align: center;
            animation: fadeSlideUp 0.6s 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .form-footer p {
            font-size: 12px;
            color: var(--text-muted);
            line-height: 1.6;
        }

        .secure-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
            padding: 5px 12px;
            border-radius: 20px;
            background: rgba(45, 212, 122, 0.06);
            border: 1px solid rgba(45, 212, 122, 0.1);
            font-size: 11px;
            color: var(--accent);
        }

        .secure-badge i { font-size: 10px; }

        /* === Toast === */
        .toast-container {
            position: fixed;
            top: 24px; right: 24px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .toast {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 20px;
            border-radius: 12px;
            background: rgba(20, 30, 24, 0.95);
            border: 1px solid var(--card-border);
            backdrop-filter: blur(20px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.4);
            transform: translateX(120%);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            min-width: 280px;
        }

        .toast.show { transform: translateX(0); }
        .toast.error { border-color: rgba(231, 76, 76, 0.3); }
        .toast.success { border-color: rgba(45, 212, 122, 0.3); }
        .toast.error .toast-icon { color: var(--danger); }
        .toast.success .toast-icon { color: var(--success); }
        .toast-icon { font-size: 18px; flex-shrink: 0; }
        .toast-msg { font-size: 13px; color: var(--text-primary); }

        /* === Error state === */
        .input-field.error {
            border-color: var(--danger);
            background: rgba(231, 76, 76, 0.04);
            box-shadow: 0 0 0 4px rgba(231, 76, 76, 0.1);
        }

        .error-msg {
            font-size: 12px;
            color: var(--danger);
            margin-top: 6px;
            display: none;
            align-items: center;
            gap: 4px;
        }

        .error-msg.visible { display: flex; }

        /* === Responsive === */
        @media (max-width: 768px) {
            .brand-panel { display: none; }
            .login-container {
                min-height: auto;
                border-radius: 20px;
            }
            .form-panel { padding: 40px 28px; }
            .form-title { font-size: 24px; }
        }

        @media (max-width: 400px) {
            .form-panel { padding: 32px 20px; }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
        }

        :focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        .input-field:focus-visible { outline: none; }