* {
            box-sizing: border-box;
        }
        
        body {
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Arial, sans-serif;
            overflow-x: hidden;
            position: relative;
        }
        
        /* Carousel Container */
        .carousel-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }
        
        /* Carousel Slides */
        .carousel-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0;
            transition: opacity 2s ease-in-out;
        }
        
        .carousel-slide.active {
            opacity: 1;
        }
        
        /* Carousel Indicators */
        .carousel-indicators {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 999;
        }
        
        .indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .indicator.active {
            background-color: white;
            border-color: rgba(255, 255, 255, 0.3);
            transform: scale(1.2);
        }
        
        .indicator:hover {
            background-color: rgba(255, 255, 255, 0.8);
        }
        
        .split-layout {
            display: flex;
            min-height: 100vh;
        }
        
        .left-image {
            flex: 2;
            background: transparent;
        }
        .right-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .content-box {
            width: 100%;
            height: auto;
            max-width: 430px;
            border-radius: 25px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: white;
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
            padding: 1rem;
            border: black 1px solid;
        }
        
        .logo {
            width: 80px;
            height: 80px;
            margin-bottom: 1rem;
            border-radius: 50%;
            object-fit: fill;
            object-position: center;
            background: transparent;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            border: none;
            display: block;
        }
        
        .greeting {
            color: black;
            font-size: 2rem;
            margin-bottom: 0.5rem;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        .instruction {
            font-size: 1rem;
            color: black;
            margin-bottom: 2rem;
            line-height: 1.4;
        }
        
        .user-type-btn {
            width: 100%;
            padding: 1rem 0;
            font-size: 1.2rem;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            margin-bottom: 1rem;
            font-weight: 500;
            transition: all 0.3s ease;
            text-decoration: none;
            display: block;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .user-type-btn:active {
            transform: translateY(1px);
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }
        
        .btn-admin {
            background: #007bff;
            color: #fff;
        }
        
        .btn-admin:hover {
            background: #0056b3;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,123,255,0.3);
        }
        
        .btn-employer {
            background: #28a745;
            color: #fff;
        }
        
        .btn-employer:hover {
            background: #1e7e34;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(40,167,69,0.3);
        }
        
        .btn-resident {
            background: #dc3545;
            color: #fff;
        }
        
        .btn-resident:hover {
            background: #a71d2a;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(220,53,69,0.3);
        }
        
        .terms {
            font-size: 0.95rem;
            color: black;
            margin-top: 1.5rem;
            line-height: 1.4;
        }
        
        .terms a {
            color: black;
            text-decoration: underline;
            font-weight: 500;
        }
        
        .terms a:hover {
            text-decoration: none;
        }

        /* Tablet styles */
        @media (max-width: 1024px) {
            .split-layout {
                flex-direction: row;
            }
            
            .left-image {
                flex: 1.5;
            }
            
            .right-container {
                flex: 1;
                padding: 1.5rem;
            }
            
            .content-box {
                padding: 2rem 1.5rem;
            }
            
            .greeting {
                font-size: 1.8rem;
            }
        }

        /* Mobile landscape */
        @media (max-width: 768px) and (orientation: landscape) {
            .split-layout {
                flex-direction: row;
            }
            
            .left-image {
                flex: 1;
            }
            
            .background-video {
                object-fit: cover;
            }
            
            .right-container {
                flex: 1;
                padding: 1rem;
            }
            
            .content-box {
                padding: 1.5rem 1rem;
                border-radius: 15px;
            }
            
            .logo {
                width: 80px;
                height: 80px;
            }
            
            .greeting {
                font-size: 1.5rem;
            }
            
            .instruction {
                font-size: 0.9rem;
                margin-bottom: 1.5rem;
            }
            
            .user-type-btn {
                padding: 0.8rem 0;
                font-size: 1.1rem;
            }
        }

        /* Mobile portrait */
        @media (max-width: 768px) and (orientation: portrait) {
            .split-layout {
                flex-direction: column;
            }
            
            .left-image {
                flex: none;
                height: 40vh;
                min-height: 200px;
            }
            
            .background-video {
                object-fit: cover;
            }
            
            .right-container {
                flex: 1;
                padding: 1rem;
                box-shadow: none;
                background: rgba(255,255,255,0.95);
            }
            
            .content-box {
                padding: 2rem 1.5rem;
                border-radius: 20px;
                margin: 0 auto;
            }
            
            .logo {
                width: 90px;
                height: 90px;
            }
            
            .greeting {
                font-size: 1.6rem;
            }
        }

        /* Small mobile */
        @media (max-width: 480px) {
            .left-image {
                height: 35vh;
                min-height: 180px;
            }
            
            .right-container {
                padding: 0.5rem;
            }
            
            .content-box {
                padding: 1.5rem 1rem;
                border-radius: 15px;
                margin: 0.5rem;
            }
            
            .logo {
                width: 80px;
                height: 80px;
                margin-bottom: 0.8rem;
            }
            
            .greeting {
                font-size: 1.4rem;
                margin-bottom: 0.3rem;
            }
            
            .instruction {
                font-size: 0.9rem;
                margin-bottom: 1.5rem;
            }
            
            .user-type-btn {
                padding: 0.9rem 0;
                font-size: 1.1rem;
                margin-bottom: 0.8rem;
            }
            
            .terms {
                font-size: 0.85rem;
                margin-top: 1rem;
            }
        }

        /* Extra small mobile */
        @media (max-width: 360px) {
            .content-box {
                padding: 1rem 0.8rem;
                margin: 0.3rem;
            }
            
            .greeting {
                font-size: 1.2rem;
            }
            
            .instruction {
                font-size: 0.85rem;
            }
            
            .user-type-btn {
                font-size: 1rem;
                padding: 0.8rem 0;
            }
            
            .terms {
                font-size: 0.8rem;
            }
        }

        /* High DPI displays */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .logo {
                border-width: 1px;
            }
        }

        /* Reduced motion for accessibility */
        @media (prefers-reduced-motion: reduce) {
            .user-type-btn {
                transition: none;
            }
            
            .user-type-btn:hover {
                transform: none;
            }
            
            .user-type-btn:active {
                transform: none;
            }
        }