 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('bckgrnd.jpg') no-repeat center center fixed;
            background-size: cover;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

        /* Animated background overlay */
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(142, 68, 173, 0.1));
            animation: gradientShift 8s ease-in-out infinite;
            z-index: -1;
        }

        @keyframes gradientShift {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.6; }
        }

        .login-container {
            width: 100%;
            max-width: 420px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 25px;
            box-shadow: 
                0 25px 50px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 0 20px rgba(255, 255, 255, 0.5);
            overflow: hidden;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transform: translateY(0);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
        }

        .login-container:hover {
            transform: translateY(-10px);
            box-shadow: 
                0 35px 70px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.15);
        }

        .login-header {
            background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #2980b9 100%);
            padding: 40px 30px 30px;
            text-align: center;
            color: #fff;
            position: relative;
            overflow: hidden;
        }

        .login-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(180deg); }
        }

        .logo-container {
            width: 120px;
            height: 120px;
            margin: 0 auto 20px;
            border-radius: 50%;
            background: white;
            padding: 8px;
            box-shadow: 
                0 10px 30px rgba(0, 0, 0, 0.3),
                inset 0 0 20px rgba(52, 152, 219, 0.2);
            border: 3px solid rgba(255, 255, 255, 0.8);
            position: relative;
            z-index: 2;
            animation: logoGlow 3s ease-in-out infinite alternate;
        }

        @keyframes logoGlow {
            0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(52, 152, 219, 0.2); }
            100% { box-shadow: 0 15px 40px rgba(52, 152, 219, 0.4), inset 0 0 30px rgba(52, 152, 219, 0.3); }
        }

        .logo {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            display: block;
        }

        .login-header h1 {
            font-size: 2.5rem;
            margin-bottom: 8px;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            position: relative;
            z-index: 2;
            background: linear-gradient(45deg, #fff, #e3f2fd);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .login-header p {
            font-size: 1.1rem;
            opacity: 0.9;
            font-weight: 300;
            position: relative;
            z-index: 2;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
        }

        .login-form {
            padding: 40px 35px;
            background: linear-gradient(to bottom, #ffffff, #f8f9fa);
        }

        .form-group {
            margin-bottom: 25px;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 10px;
            color: #2c3e50;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .input-with-icon {
            position: relative;
            transition: all 0.3s ease;
        }

        .input-with-icon i {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: #7f8c8d;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            z-index: 2;
        }

        .input-with-icon input {
            width: 100%;
            padding: 16px 20px 16px 50px;
            border: 2px solid #e9ecef;
            border-radius: 15px;
            font-size: 1rem;
            background: #ffffff;
            transition: all 0.4s ease;
            position: relative;
            z-index: 1;
        }

        .input-with-icon input:focus {
            border-color: #3498db;
            box-shadow: 
                0 0 0 4px rgba(52, 152, 219, 0.15),
                0 5px 20px rgba(52, 152, 219, 0.1);
            outline: none;
            transform: translateY(-2px);
        }

        .input-with-icon input:focus + i {
            color: #3498db;
            transform: translateY(-50%) scale(1.1);
        }

        .btn-login {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
            color: #fff;
            border: none;
            border-radius: 15px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
        }

        .btn-login::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.6s ease;
        }

        .btn-login:hover::before {
            left: 100%;
        }

        .btn-login:hover {
            transform: translateY(-5px);
            box-shadow: 
                0 15px 35px rgba(52, 152, 219, 0.4),
                0 5px 15px rgba(52, 152, 219, 0.2);
            background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
        }

        .btn-login:active {
            transform: translateY(-2px);
        }

        .btn-login i {
            margin-right: 8px;
            transition: transform 0.3s ease;
        }

        .btn-login:hover i {
            transform: translateX(3px);
        }

        .error-message {
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            color: #fff;
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 25px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
            border-left: 5px solid rgba(255, 255, 255, 0.5);
            animation: shake 0.5s ease-in-out;
            display: <?= $error ? 'block':'none'; ?>;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

        .login-footer {
            text-align: center;
            margin-top: 25px;
            color: #7f8c8d;
            font-size: 0.95rem;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }

        .login-footer a {
            color: #3498db;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .login-footer a:hover {
            color: #2980b9;
            text-decoration: underline;
        }

        /* Snow falling effect */
        .snow-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -2;
            pointer-events: none;
        }

        .snowflake {
            position: absolute;
            background: #ffffff;
            border-radius: 50%;
            opacity: 0.8;
            animation: fall linear infinite;
            box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        }

        @keyframes fall {
            0% {
                transform: translateY(-100px) translateX(0) rotate(0deg);
                opacity: 0.8;
            }
            70% {
                opacity: 0.7;
            }
            100% {
                transform: translateY(100vh) translateX(20px) rotate(360deg);
                opacity: 0;
            }
        }

        /* Different sizes and animations for variety */
        .snowflake.small {
            width: 5px;
            height: 5px;
            animation-duration: 8s;
        }

        .snowflake.medium {
            width: 8px;
            height: 8px;
            animation-duration: 12s;
            animation-delay: 0.5s;
        }

        .snowflake.large {
            width: 12px;
            height: 12px;
            animation-duration: 15s;
            animation-delay: 1s;
        }

        .snowflake.xlarge {
            width: 15px;
            height: 15px;
            animation-duration: 18s;
            animation-delay: 1.5s;
        }

        /* Responsive design */
        @media (max-width: 480px) {
            .login-container {
                max-width: 350px;
                margin: 20px;
            }

            .login-header {
                padding: 30px 25px 25px;
            }

            .login-form {
                padding: 30px 25px;
            }

            .logo-container {
                width: 100px;
                height: 100px;
            }

            .login-header h1 {
                font-size: 2rem;
            }
        }

        @media (max-width: 360px) {
            .login-container {
                max-width: 300px;
            }

            .login-header h1 {
                font-size: 1.8rem;
            }
        }