
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #ffffff;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            position: relative;
            overflow: hidden;
        }
        
        /* Subtle background pattern */
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                radial-gradient(circle at 25% 25%, rgba(30, 58, 138, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(30, 58, 138, 0.08) 0%, transparent 50%);
            background-size: 600px 600px;
            animation: float 30s infinite linear;
            z-index: 0;
        }

        @keyframes float {
            0% { transform: translate(0, 0) rotate(0deg); }
            100% { transform: translate(-30px, -30px) rotate(360deg); }
        }
        
        .login-card {
            background: white;
            border-radius: 10px;
            box-shadow: 
                0 20px 25px -5px rgba(30, 58, 138, 0.1),
                0 10px 10px -5px rgba(30, 58, 138, 0.04);
            width: 100%;
            max-width: 420px;
            overflow: hidden;
            position: relative;
            z-index: 1;
            border: 2px solid rgba(30, 58, 138, 0.08);
        }
        
        .card-header {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            padding: 40px 30px 30px;
            text-align: center;
            position: relative;
        }
          .card-header2 {
    position: relative;
    padding: 40px 30px 30px;
    text-align: center;
    min-height: 180px;
    z-index: 0; /* Ensure text stays above */
}

.card-header2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../img/headerbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7; /* Adjust opacity here */
    z-index: -1; /* Behind content */
}
        
        .logo-badge {
            width: 80px;
            height: 80px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            border: 3px solid rgba(255, 255, 255, 0.3);
            /* backdrop-filter: blur(10px); */
        }
        
        .logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Scales the image to cover the entire circle, cropping if needed */
    border-radius: 50%;  /* Ensures the image itself is circular if it overflows */
}
        .logo-badge i {
            color: white;
            font-size: 32px;
        }
        
        .card-header h1 {
            color: white;
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 8px;
            letter-spacing: -0.5px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        .card-header p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            line-height: 1.5;
            font-weight: 300;
            max-width: 280px;
            margin: 0 auto;
        }
        
        .card-body {
            padding: 35px;
        }
        
        .welcome-text {
            text-align: center;
            color: #2d3748;
            font-size: 16px;
            margin-bottom: 30px;
            line-height: 1.6;
        }
        
        .error-message {
            background: #fee;
            border: 1px solid #fecaca;
            color: #c53030;
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 25px;
            font-size: 14px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            animation: slideIn 0.3s ease-out;
        }
        
        @keyframes slideIn {
            from { transform: translateY(-10px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .form-group {
            margin-bottom: 24px;
            position: relative;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 10px;
            color: #2d3748;
            font-weight: 600;
            font-size: 14px;
        }
        
        .input-with-icon {
            position: relative;
        }
        
        .input-with-icon i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #718096;
            font-size: 16px;
        }
        
        .form-group input {
            width: 100%;
            padding: 16px 16px 16px 45px;
            border: 2px solid #e2e8f0;
            border-radius: 14px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: #f8fafc;
            color: #2d3748;
        }
        
        .form-group input:focus {
            outline: none;
            border-color: #2a5298;
            background: white;
            box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
        }
        
        .btn-login {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            border: none;
            border-radius: 14px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 8px;
            box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
            position: relative;
            overflow: hidden;
        }
        
        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
        }
        
        .btn-login:active {
            transform: translateY(0);
        }
        
        .btn-login::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }
        
        .btn-login:hover::after {
            left: 100%;
        }
        
        .footer {
            text-align: center;
            margin-top: 30px;
            color: #718096;
            font-size: 12px;
            padding-top: 20px;
            border-top: 1px solid #edf2f7;
        }
        
        /* Mobile optimizations */
        @media (max-width: 480px) {
            .login-card {
                border-radius: 16px;
            }
            
            .card-header {
                padding: 35px 20px 25px;
            }
            
            .logo-badge {
                width: 70px;
                height: 70px;
            }
            
            .card-header h1 {
                font-size: 24px;
            }
            
            .card-body {
                padding: 25px 20px;
            }
            
            .form-group input {
                padding: 16px 16px 16px 45px;
            }
            
            .btn-login {
                padding: 18px;
                font-size: 17px;
            }
        }
        
        /* Prevent zoom on iOS */
        @media screen and (-webkit-min-device-pixel-ratio: 0) {
            input[type="text"], input[type="password"] {
                font-size: 16px;
            }
        }
.cf-turnstile {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Optional: Add consistent styling to match your form */
.form-group .cf-turnstile {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    transition: all 0.3s ease;
}

.form-group .cf-turnstile:hover {
    border-color: #cbd5e0;
}

/* Ensure the iframe inside is centered */
.cf-turnstile iframe {
    display: block;
    margin: 0 auto;
}