        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            animation: gradientShift 15s ease infinite;
            background-size: 200% 200%;
        }
        
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        /* Animated Background Canvas */
        #animatedBackground {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }
        
        /* Happy New Year Banner */
        .new-year-banner {
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.95);
            padding: 12px 24px;
            border-radius: 50px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            font-weight: 700;
            font-size: 16px;
            color: #667eea;
            animation: float 3s ease-in-out infinite, glow 2s ease-in-out infinite;
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 215, 0, 0.5);
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-10px) rotate(2deg); }
        }
        
        @keyframes glow {
            0%, 100% { 
                box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3),
                           0 0 20px rgba(255, 215, 0, 0.3);
            }
            50% { 
                box-shadow: 0 8px 32px rgba(102, 126, 234, 0.5),
                           0 0 40px rgba(255, 215, 0, 0.6);
            }
        }
        
        .new-year-emoji {
            display: inline-block;
            animation: spin 4s linear infinite;
            margin-right: 8px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg) scale(1); }
            25% { transform: rotate(10deg) scale(1.1); }
            50% { transform: rotate(0deg) scale(1); }
            75% { transform: rotate(-10deg) scale(1.1); }
            100% { transform: rotate(0deg) scale(1); }
        }
        
        .auth-container {
            max-width: 400px;
            width: 100%;
            background: rgba(255, 255, 255, 0.98);
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            text-align: center;
            position: relative;
            z-index: 1;
            backdrop-filter: blur(10px);
        }
        
        .lock-icon {
            font-size: 4em;
            margin-bottom: 20px;
            color: #667eea;
        }
        
        h1 {
            color: #333;
            margin-bottom: 10px;
            font-size: 1.8em;
        }
        
        .subtitle {
            color: #666;
            margin-bottom: 30px;
            font-size: 14px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #333;
            text-align: left;
        }
        
        .pin-input {
            width: 100%;
            padding: 15px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 18px;
            text-align: center;
            letter-spacing: 8px;
            font-family: 'Courier New', monospace;
            font-weight: bold;
        }
        
        .pin-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
        }
        
        .btn {
            width: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .btn:hover {
            transform: translateY(-2px);
        }
        
        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        .error-message {
            background: #f8d7da;
            color: #721c24;
            padding: 12px;
            border-radius: 6px;
            margin-top: 15px;
            display: none;
            border: 1px solid #f5c6cb;
        }
        
        .success-message {
            background: #d4edda;
            color: #155724;
            padding: 12px;
            border-radius: 6px;
            margin-top: 15px;
            display: none;
            border: 1px solid #c3e6cb;
        }
        
        .loading {
            display: none;
            text-align: center;
            padding: 15px;
            color: #667eea;
        }
        
        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: 10px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .footer {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
            color: #6c757d;
            font-size: 12px;
        }
        
        /* Cambodia Solidarity Footer */
        .cambodia-footer {
            margin-top: 30px;
            padding: 25px 20px;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            border-radius: 15px;
            text-align: center;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        
        .cambodia-footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #d21034 0%, #ffffff 50%, #d21034 100%);
        }
        
        .cambodia-flag {
            display: inline-block;
            width: 60px;
            height: 40px;
            background: linear-gradient(to bottom, 
                #d21034 0%, #d21034 33.33%,
                #ffffff 33.33%, #ffffff 66.66%,
                #d21034 66.66%, #d21034 100%);
            border-radius: 8px;
            margin: 0 15px;
            position: relative;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            animation: flagWave 3s ease-in-out infinite;
        }
        
        .cambodia-flag::after {
            content: '🏛️';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 16px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }
        
        @keyframes flagWave {
            0%, 100% { transform: rotate(0deg); }
            50% { transform: rotate(2deg); }
        }
        
        .stand-with-text {
            color: #ffffff;
            font-size: 18px;
            font-weight: bold;
            margin: 10px 0;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        }
        
        .solidarity-message {
            color: #e8f4fd;
            font-size: 14px;
            margin: 8px 0;
            font-style: italic;
        }
        
        .cambodia-hearts {
            margin: 10px 0;
            font-size: 20px;
            animation: heartBeat 2s ease-in-out infinite;
        }
        
        @keyframes heartBeat {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }
        
        .cambodia-stats {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 15px;
            flex-wrap: wrap;
        }
        
        .stat-item {
            background: rgba(255,255,255,0.1);
            padding: 8px 15px;
            border-radius: 20px;
            color: #ffffff;
            font-size: 12px;
            backdrop-filter: blur(10px);
        }
        
        /* Professional Success Animation */
        .success-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .success-animation.show {
            opacity: 1;
            visibility: visible;
        }
        
        .success-content {
            text-align: center;
            color: white;
            transform: scale(0.9) translateY(10px);
            transition: all 0.4s ease;
            max-width: 400px;
        }
        
        .success-animation.show .success-content {
            transform: scale(1) translateY(0);
        }
        
        .success-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            color: white;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
            animation: iconFadeIn 0.4s ease 0.1s both;
        }
        
        .success-text {
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #ffffff;
            animation: textFadeIn 0.4s ease 0.2s both;
        }
        
        .success-subtext {
            font-size: 16px;
            color: rgba(255,255,255,0.8);
            line-height: 1.5;
            animation: textFadeIn 0.4s ease 0.3s both;
        }
        
        @keyframes iconFadeIn {
            0% { 
                transform: scale(0) rotate(-90deg);
                opacity: 0;
            }
            100% { 
                transform: scale(1) rotate(0deg);
                opacity: 1;
            }
        }
        
        @keyframes textFadeIn {
            0% { 
                transform: translateY(10px);
                opacity: 0;
            }
            100% { 
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        /* Fast Button Success Animation */
        .btn-success {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
            animation: buttonSuccess 0.3s ease;
        }
        
        @keyframes buttonSuccess {
            0% { 
                transform: scale(1);
                box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
            }
            50% { 
                transform: scale(1.01);
                box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
            }
            100% { 
                transform: scale(1);
                box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
            }
        }
        
        /* Dark Mode Styles */
        body[data-theme="dark"] {
            background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
        }
        
        body[data-theme="dark"] .auth-container {
            background: rgba(15, 23, 42, 0.95);
            color: #e5e7eb;
            border: 1px solid #1f2937;
        }
        
        body[data-theme="dark"] h1 {
            color: #e5e7eb;
        }
        
        body[data-theme="dark"] .subtitle {
            color: #9ca3af;
        }
        
        body[data-theme="dark"] label {
            color: #e5e7eb;
        }
        
        body[data-theme="dark"] .pin-input {
            background: #0b1325;
            border-color: #1f2937;
            color: #e5e7eb;
        }
        
        body[data-theme="dark"] .btn {
            background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
        }
        
        body[data-theme="dark"] .error-div {
            background: #4a1f29;
            border-color: #dc3545;
            color: #ffcdd2;
        }
        
        body[data-theme="dark"] .success-div {
            background: #123222;
            border-color: #22c55e;
            color: #d1fae5;
        }
        
        body[data-theme="dark"] .new-year-banner {
            background: rgba(31, 41, 55, 0.95);
            color: #a5b4fc;
            border-color: rgba(139, 92, 246, 0.5);
        }
    
