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

        html, body {
            min-height: 100%;
            font-family: 'Public Sans', sans-serif;
            background: #f8fafc;
            color: #0f172a;
        }

        /* Ambient Soft Glow Background */
        .ambient-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            overflow: hidden;
            z-index: 0;
            pointer-events: none;
        }

        .glow-orb-1 {
            position: absolute;
            top: -15%;
            left: -10%;
            width: 50vw;
            height: 50vw;
            background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
            border-radius: 50%;
            filter: blur(60px);
        }

        .glow-orb-2 {
            position: absolute;
            bottom: -15%;
            right: -10%;
            width: 50vw;
            height: 50vw;
            background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
            border-radius: 50%;
            filter: blur(70px);
        }

        /* Main Wrapper */
        .main-wrapper {
            position: relative;
            z-index: 1;
            width: 100%;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 2rem 1rem;
        }

        /* Stacked Glass Login Card (Top: Attendance Synchronizer, Bottom: Inputs) */
        .login-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(226, 232, 240, 0.9);
            box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.08), 0 0 35px rgba(99, 102, 241, 0.07);
            border-radius: 28px;
            width: 100%;
            max-width: 480px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        /* Top Section: Animated Attendance Synchronizer Branding & Scanner */
        .card-top-pattern {
            background: linear-gradient(135deg, rgba(238, 242, 255, 0.9) 0%, rgba(243, 232, 255, 0.7) 100%);
            border-bottom: 1px solid rgba(226, 232, 240, 0.8);
            padding: 2rem 1.75rem 1.5rem 1.75rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        /* Animated Fingerprint Icon Wrapper */
        .sync-icon-wrapper {
            width: 72px;
            height: 72px;
            margin-bottom: 0.85rem;
            background: linear-gradient(135deg, #e0e7ff 0%, #e0e7ff 100%);
            border: 1.5px solid #c7d2fe;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.25rem;
            color: #4f46e5;
            box-shadow: 0 10px 22px rgba(79, 70, 229, 0.16);
            position: relative;
            z-index: 2;
            overflow: hidden;
        }

        .sync-icon-wrapper i {
            animation: pulseSync 3s ease-in-out infinite;
        }

        /* Laser Sweep Line across Fingerprint */
        .sync-icon-wrapper::after {
            content: '';
            position: absolute;
            top: 0;
            left: 10%;
            width: 80%;
            height: 3px;
            background: linear-gradient(90deg, transparent, #10b981, transparent);
            box-shadow: 0 0 12px #10b981;
            border-radius: 4px;
            animation: scanLaser 2.2s ease-in-out infinite alternate;
        }

        @keyframes scanLaser {
            0% { top: 10%; opacity: 0.3; }
            100% { top: 85%; opacity: 1; }
        }

        @keyframes pulseSync {
            0%, 100% { transform: scale(1); opacity: 0.9; }
            50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 6px rgba(79, 70, 229, 0.45)); }
        }

        /* Floating Wave Rings Animation */
        .wave-ring {
            position: absolute;
            border: 2px solid rgba(99, 102, 241, 0.15);
            border-radius: 50%;
            animation: ripple 4s linear infinite;
        }

        .wave-ring:nth-child(1) { width: 120px; height: 120px; animation-delay: 0s; }
        .wave-ring:nth-child(2) { width: 190px; height: 190px; animation-delay: 1.3s; }
        .wave-ring:nth-child(3) { width: 260px; height: 260px; animation-delay: 2.6s; }

        @keyframes ripple {
            0% { transform: scale(0.6); opacity: 0.8; }
            100% { transform: scale(1.35); opacity: 0; }
        }

        .pattern-title {
            font-size: 1.35rem;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 0.25rem;
            letter-spacing: -0.4px;
            line-height: 1.3;
            z-index: 2;
        }

        .pattern-desc {
            font-size: 0.825rem;
            color: #64748b;
            line-height: 1.45;
            max-width: 360px;
            z-index: 2;
        }

        /* Dynamic Attendance Verified / Present Looping Pill Badge */
        .scan-status-card {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(16, 185, 129, 0.35);
            box-shadow: 0 6px 16px rgba(16, 185, 129, 0.14);
            padding: 0.35rem 0.9rem;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 700;
            color: #065f46;
            margin-top: 0.75rem;
            z-index: 2;
            animation: verifyBadgeCycle 4s ease-in-out infinite;
        }

        .status-dot {
            width: 7px;
            height: 7px;
            background-color: #10b981;
            border-radius: 50%;
            box-shadow: 0 0 8px #10b981;
            animation: blinkDot 1.5s ease-in-out infinite;
        }

        @keyframes verifyBadgeCycle {
            0%, 10% {
                opacity: 0;
                transform: translateY(6px) scale(0.94);
            }
            25%, 80% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
            92%, 100% {
                opacity: 0;
                transform: translateY(-4px) scale(0.96);
            }
        }

        @keyframes blinkDot {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.4; transform: scale(0.85); }
        }

        .feature-chips {
            display: flex;
            justify-content: center;
            gap: 0.35rem;
            flex-wrap: wrap;
            margin-top: 0.75rem;
            z-index: 2;
        }

        .chip {
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid #e2e8f0;
            padding: 0.25rem 0.65rem;
            border-radius: 30px;
            font-size: 0.725rem;
            color: #475569;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .chip i {
            color: #4f46e5;
            font-size: 0.75rem;
        }

        /* Bottom Section: Form Header & Inputs */
        .card-bottom-form {
            padding: 1.75rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .form-header {
            margin-bottom: 1.35rem;
            text-align: left;
            position: relative;
        }

        .portal-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.25rem 0.75rem;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.08) 100%);
            border: 1px solid rgba(99, 102, 241, 0.25);
            border-radius: 50px;
            font-size: 0.725rem;
            font-weight: 700;
            color: #4f46e5;
            margin-bottom: 0.6rem;
            letter-spacing: 0.3px;
        }

        .portal-badge i {
            font-size: 0.8rem;
        }

        .form-title {
            font-size: 1.55rem;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 0.35rem;
            letter-spacing: -0.6px;
            line-height: 1.25;
            display: flex;
            align-items: center;
            gap: 0.45rem;
        }

        .gradient-brand-text {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .waving-hand {
            display: inline-block;
            animation: waveHand 2.5s infinite;
            transform-origin: 70% 70%;
        }

        @keyframes waveHand {
            0%, 100% { transform: rotate(0deg); }
            10%, 30% { transform: rotate(14deg); }
            20%, 40% { transform: rotate(-8deg); }
            50% { transform: rotate(10deg); }
            60% { transform: rotate(0deg); }
        }

        .form-subtitle {
            font-size: 0.825rem;
            color: #64748b;
            line-height: 1.5;
            font-weight: 400;
            margin-bottom: 0.65rem;
        }

        .header-security-strip {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.35rem 0.75rem;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            font-size: 0.725rem;
            font-weight: 600;
            color: #475569;
        }

        .header-security-strip .sec-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .header-security-strip .sec-divider {
            color: #cbd5e1;
        }

        .form-group {
            margin-bottom: 1.15rem;
        }

        .form-label {
            font-size: 0.825rem;
            font-weight: 600;
            color: #334155;
            margin-bottom: 0.4rem;
            display: block;
        }

        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-icon {
            position: absolute;
            left: 1rem;
            color: #94a3b8;
            font-size: 1rem;
            pointer-events: none;
            transition: color 0.2s ease;
        }

        .custom-input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2.65rem;
            background: #ffffff;
            border: 1.5px solid #e2e8f0;
            border-radius: 12px;
            font-size: 0.9rem;
            color: #0f172a;
            transition: all 0.25s ease;
            outline: none;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.015);
        }

        .custom-input:focus {
            border-color: #6366f1;
            background: #ffffff;
            box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.12);
        }

        .custom-input:focus + .input-icon,
        .input-wrapper:focus-within .input-icon {
            color: #4f46e5;
        }

        .toggle-password {
            position: absolute;
            right: 1rem;
            color: #94a3b8;
            cursor: pointer;
            font-size: 1rem;
            transition: color 0.2s ease;
        }

        .toggle-password:hover {
            color: #475569;
        }

        .form-options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.35rem;
        }

        .remember-check {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            font-size: 0.825rem;
            color: #475569;
            cursor: pointer;
            user-select: none;
        }

        .remember-check input {
            accent-color: #4f46e5;
            width: 15px;
            height: 15px;
            cursor: pointer;
            border-radius: 4px;
        }

        .forgot-password-link {
            font-size: 0.825rem;
            font-weight: 600;
            color: #4f46e5;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .forgot-password-link:hover {
            color: #4338ca;
            text-decoration: underline;
        }

        .btn-login-submit {
            width: 100%;
            background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
            border: none;
            color: #ffffff;
            padding: 0.8rem;
            border-radius: 12px;
            font-weight: 700;
            font-size: 0.925rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
            cursor: pointer;
            transition: all 0.25s ease;
            box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
        }

        .btn-login-submit:hover {
            background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
            transform: translateY(-1.5px);
            box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
        }

        .back-home-link {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.825rem;
            color: #64748b;
            text-decoration: none;
            margin-top: 1.15rem;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .back-home-link:hover {
            color: #4f46e5;
        }

        /* Footer */
        .landing-footer {
            font-size: 0.775rem;
            color: #94a3b8;
            text-align: center;
            margin-top: 1.25rem;
        }

        .footer-divider {
            margin: 0 0.35rem;
        }

        @media (max-width: 575.98px) {
            .main-wrapper {
                padding: 1.25rem 0.75rem;
            }
            .card-top-pattern {
                padding: 1.75rem 1.25rem 1.25rem 1.25rem;
            }
            .card-bottom-form {
                padding: 1.35rem 1.25rem;
            }
            .pattern-title {
                font-size: 1.25rem;
            }
        }
    